anchor.diff:  interface
   
   uses
  -   Windows;
  +   SysUtils, Windows;
   
   function InitLibgit2: Boolean;
   
  
positive.code:    Pgit_revwalk_listnode = ^git_revwalk_listnode;
     Pgit_tag = ^git_tag;
     Ppack_backend = ^pack_backend;
  
  //   typedef int (*git_vector_cmp)(const void *, const void *);
     git_vector_cmp = Pointer;
  
negative.code:     FreeLibrary(libgit2);
      libgit2 := 0;
  
      git_blob_lookup                           := nil;
      git_blob_new                              := nil;
      git_blob_set_rawcontent_fromfile          := nil;
      git_blob_set_rawcontent                   := nil;
      git_blob_rawcontent                       := nil;
      git_blob_rawsize                          := nil;
      git_blob_writefile                        := nil;
  
      git_commit_lookup                         := nil;
      git_commit_message_short                  := nil;
      git_commit_message                        := nil;
      git_commit_author                         := nil;
      git_commit_committer                      := nil;
      git_commit_time                           := nil;
      git_commit_parentcount                    := nil;
      git_commit_parent                         := nil;
      git_commit_id                             := nil;
      git_commit_new                            := nil;
      git_commit_timezone_offset                := nil;
      git_commit_tree                           := nil;
      git_commit_add_parent                     := nil;
      git_commit_set_message                    := nil;
      git_commit_set_committer                  := nil;
      git_commit_set_author                     := nil;
      git_commit_set_tree                       := nil;
  
      git_index_open_bare                       := nil;
      git_index_read                            := nil;
      git_index_free                            := nil;
      git_index_find                            := nil;
      git_index_entrycount                      := nil;
  
      git_index_open_inrepo                     := nil;
      git_index_clear                           := nil;
      git_index_write                           := nil;
      git_index_add                             := nil;
      git_index_remove                          := nil;
      git_index_insert                          := nil;
      git_index_get                             := nil;
  
      git_object_id                             := nil;
      git_object_write                          := nil;
      git_object_free                           := nil;
      git_object_type                           := nil;
      git_object_owner                          := nil;
      git_object_type2string                    := nil;
      git_object_string2type                    := nil;
      git_object_typeisloose                    := nil;
  
      git_odb_new                               := nil;
      git_odb_open                              := nil;
      git_odb_add_backend                       := nil;
      git_odb_close                             := nil;
      git_odb_read                              := nil;
      git_odb_read_header                       := nil;
      git_odb_write                             := nil;
      git_odb_exists                            := nil;
  
      git_rawobj_hash                           := nil;
      git_rawobj_close                          := nil;
  
      git_oid_mkstr                             := nil;
      git_oid_fmt                               := nil;
      git_oid_pathfmt                           := nil;
      git_oid_mkraw                             := nil;
      git_oid_allocfmt                          := nil;
      git_oid_to_string                         := nil;
      git_oid_cpy                               := nil;
  
      git_repository_open                       := nil;
      git_repository_free                       := nil;
      git_repository_open2                      := nil;
      git_repository_lookup                     := nil;
      git_repository_database                   := nil;
      git_repository_index                      := nil;
      git_repository_newobject                  := nil;
      git_repository_init                       := nil;
  
      git_revwalk_new                           := nil;
      git_revwalk_free                          := nil;
      git_revwalk_sorting                       := nil;
      git_revwalk_push                          := nil;
      git_revwalk_next                          := nil;
      git_revwalk_reset                         := nil;
      git_revwalk_hide                          := nil;
      git_revwalk_repository                    := nil;
  
      git_signature_new                         := nil;
      git_signature_dup                         := nil;
      git_signature_free                        := nil;
  
      git_tag_lookup                            := nil;
      git_tag_name                              := nil;
      git_tag_type                              := nil;
      git_tag_target                            := nil;
      git_tag_id                                := nil;
      git_tag_set_name                          := nil;
      git_tag_new                               := nil;
      git_tag_tagger                            := nil;
      git_tag_message                           := nil;
      git_tag_set_target                        := nil;
      git_tag_set_tagger                        := nil;
      git_tag_set_message                       := nil;
  
      git_tree_lookup                           := nil;
      git_tree_entry_byname                     := nil;
      git_tree_entry_byindex                    := nil;
      git_tree_entrycount                       := nil;
      git_tree_entry_name                       := nil;
      git_tree_entry_2object                    := nil;
      git_tree_new                              := nil;
      git_tree_add_entry                        := nil;
      git_tree_remove_entry_byindex             := nil;
      git_tree_remove_entry_byname              := nil;
      git_tree_id                               := nil;
  
      git_tree_entry_attributes                 := nil;
      git_tree_entry_id                         := nil;
      git_tree_entry_set_id                     := nil;
      git_tree_entry_set_name                   := nil;
      git_tree_entry_set_attributes             := nil;
    end;
  end;
  
  