Skip to content

Instantly share code, notes, and snippets.

@asterite
Last active October 22, 2015 20:06
Show Gist options
  • Save asterite/871ff16a53b2ec6cbb1a to your computer and use it in GitHub Desktop.
Save asterite/871ff16a53b2ec6cbb1a to your computer and use it in GitHub Desktop.
@[Link("git2")]
lib LibGit2
PATH_MAX = 4096
ATTR_CHECK_FILE_THEN_INDEX = 0
ATTR_CHECK_INDEX_THEN_FILE = 1
ATTR_CHECK_INDEX_ONLY = 2
OID_RAWSZ = 20
OID_MINPREFIXLEN = 4
BLAME_OPTIONS_VERSION = 1
DIFF_OPTIONS_VERSION = 1
DIFF_FIND_OPTIONS_VERSION = 1
DIFF_FORMAT_EMAIL_OPTIONS_VERSION = 1
CHECKOUT_OPTIONS_VERSION = 1
IDXENTRY_STAGESHIFT = 12
INDEX_STAGE_ANY = -1
MERGE_FILE_INPUT_VERSION = 1
MERGE_FILE_OPTIONS_VERSION = 1
MERGE_OPTIONS_VERSION = 1
CHERRY_PICK_OPTIONS_VERSION = 1
REPOSITORY_INIT_OPTIONS_VERSION = 1
TRANSPORT_VERSION = 1
REMOTE_CALLBACKS_VERSION = 1
CLONE_OPTIONS_VERSION = 1
PUSH_OPTIONS_VERSION = 1
REVERT_OPTIONS_VERSION = 1
STATUS_OPTIONS_VERSION = 1
fun libgit2_version = git_libgit2_version(major : LibC::Int*, minor : LibC::Int*, rev : LibC::Int*)
FEATURETHREADS = 1
FEATUREHTTPS = 2
FEATURESSH = 4
fun libgit2_features = git_libgit2_features : LibC::Int
OPTGETMWINDOWSIZE = 0
OPTSETMWINDOWSIZE = 1
OPTGETMWINDOWMAPPEDLIMIT = 2
OPTSETMWINDOWMAPPEDLIMIT = 3
OPTGETSEARCHPATH = 4
OPTSETSEARCHPATH = 5
OPTSETCACHEOBJECTLIMIT = 6
OPTSETCACHEMAXSIZE = 7
OPTENABLECACHING = 8
OPTGETCACHEDMEMORY = 9
OPTGETTEMPLATEPATH = 10
OPTSETTEMPLATEPATH = 11
fun libgit2_opts = git_libgit2_opts(option : LibC::Int, ...) : LibC::Int
OBJANY = -2
OBJBAD = -1
OBJEXT1 = 0
OBJCOMMIT = 1
OBJTREE = 2
OBJBLOB = 3
OBJTAG = 4
OBJEXT2 = 5
OBJOFSDELTA = 6
OBJREFDELTA = 7
REFINVALID = 0
REFOID = 1
REFSYMBOLIC = 2
REFLISTALL = 3
BRANCHLOCAL = 1
BRANCHREMOTE = 2
BRANCHALL = 3
FILEMODENEW = 0
FILEMODETREE = 16384
FILEMODEBLOB = 33188
FILEMODEBLOBEXECUTABLE = 33261
FILEMODELINK = 40960
FILEMODECOMMIT = 57344
SUBMODULEUPDATERESET = -1
SUBMODULEUPDATECHECKOUT = 1
SUBMODULEUPDATEREBASE = 2
SUBMODULEUPDATEMERGE = 3
SUBMODULEUPDATENONE = 4
SUBMODULEUPDATEDEFAULT = 0
SUBMODULEIGNORERESET = -1
SUBMODULEIGNORENONE = 1
SUBMODULEIGNOREUNTRACKED = 2
SUBMODULEIGNOREDIRTY = 3
SUBMODULEIGNOREALL = 4
SUBMODULEIGNOREDEFAULT = 0
SUBMODULERECURSERESET = -1
SUBMODULERECURSENO = 0
SUBMODULERECURSEYES = 1
SUBMODULERECURSEONDEMAND = 2
ATTRUNSPECIFIEDT = 0
ATTRTRUET = 1
ATTRFALSET = 2
ATTRVALUET = 3
fun attr_value = git_attr_value(attr : LibC::Char*) : AttrT
enum AttrT
ATTRUNSPECIFIEDT = 0
ATTRTRUET = 1
ATTRFALSET = 2
ATTRVALUET = 3
end
fun attr_get = git_attr_get(value_out : LibC::Char**, repo : X_Repository, flags : Uint32T, path : LibC::Char*, name : LibC::Char*) : LibC::Int
type X_Repository = Void*
alias Uint32T = LibC::UInt
fun attr_get_many = git_attr_get_many(values_out : LibC::Char**, repo : X_Repository, flags : Uint32T, path : LibC::Char*, num_attr : LibC::SizeT, names : LibC::Char**) : LibC::Int
fun attr_foreach = git_attr_foreach(repo : X_Repository, flags : Uint32T, path : LibC::Char*, callback : AttrForeachCb, payload : Void*) : LibC::Int
alias AttrForeachCb = LibC::Char*, LibC::Char*, Void* -> LibC::Int
fun attr_cache_flush = git_attr_cache_flush(repo : X_Repository)
fun attr_add_macro = git_attr_add_macro(repo : X_Repository, name : LibC::Char*, values : LibC::Char*) : LibC::Int
fun oid_fromstr = git_oid_fromstr(out : Oid*, str : LibC::Char*) : LibC::Int
struct Oid
id : UInt8[20]
end
fun oid_fromstrp = git_oid_fromstrp(out : Oid*, str : LibC::Char*) : LibC::Int
fun oid_fromstrn = git_oid_fromstrn(out : Oid*, str : LibC::Char*, length : LibC::SizeT) : LibC::Int
fun oid_fromraw = git_oid_fromraw(out : Oid*, raw : UInt8*)
fun oid_fmt = git_oid_fmt(out : LibC::Char*, id : Oid*)
fun oid_nfmt = git_oid_nfmt(out : LibC::Char*, n : LibC::SizeT, id : Oid*)
fun oid_pathfmt = git_oid_pathfmt(out : LibC::Char*, id : Oid*)
fun oid_allocfmt = git_oid_allocfmt(id : Oid*) : LibC::Char*
fun oid_tostr = git_oid_tostr(out : LibC::Char*, n : LibC::SizeT, id : Oid*) : LibC::Char*
fun oid_cpy = git_oid_cpy(out : Oid*, src : Oid*)
fun oid_cmp = git_oid_cmp(a : Oid*, b : Oid*) : LibC::Int
fun oid_equal = git_oid_equal(a : Oid*, b : Oid*) : LibC::Int
fun oid_ncmp = git_oid_ncmp(a : Oid*, b : Oid*, len : LibC::SizeT) : LibC::Int
fun oid_streq = git_oid_streq(id : Oid*, str : LibC::Char*) : LibC::Int
fun oid_strcmp = git_oid_strcmp(id : Oid*, str : LibC::Char*) : LibC::Int
fun oid_iszero = git_oid_iszero(id : Oid*) : LibC::Int
fun oid_shorten_new = git_oid_shorten_new(min_length : LibC::SizeT) : X_OidShorten
type X_OidShorten = Void*
fun oid_shorten_add = git_oid_shorten_add(os : X_OidShorten, text_id : LibC::Char*) : LibC::Int
fun oid_shorten_free = git_oid_shorten_free(os : X_OidShorten)
fun buf_free = git_buf_free(buffer : Buf*)
struct Buf
ptr : LibC::Char*
asize : LibC::SizeT
size : LibC::SizeT
end
fun buf_grow = git_buf_grow(buffer : Buf*, target_size : LibC::SizeT) : LibC::Int
fun buf_set = git_buf_set(buffer : Buf*, data : Void*, datalen : LibC::SizeT) : LibC::Int
fun object_lookup = git_object_lookup(object : X_Object*, repo : X_Repository, id : Oid*, type : Otype) : LibC::Int
type X_Object = Void*
enum Otype
OBJANY = -2
OBJBAD = -1
OBJEXT1 = 0
OBJCOMMIT = 1
OBJTREE = 2
OBJBLOB = 3
OBJTAG = 4
OBJEXT2 = 5
OBJOFSDELTA = 6
OBJREFDELTA = 7
end
fun object_lookup_prefix = git_object_lookup_prefix(object_out : X_Object*, repo : X_Repository, id : Oid*, len : LibC::SizeT, type : Otype) : LibC::Int
fun object_lookup_bypath = git_object_lookup_bypath(out : X_Object*, treeish : X_Object, path : LibC::Char*, type : Otype) : LibC::Int
fun object_id = git_object_id(obj : X_Object) : Oid*
fun object_short_id = git_object_short_id(out : Buf*, obj : X_Object) : LibC::Int
fun object_type = git_object_type(obj : X_Object) : Otype
fun object_owner = git_object_owner(obj : X_Object) : X_Repository
fun object_free = git_object_free(object : X_Object)
fun object_type2string = git_object_type2string(type : Otype) : LibC::Char*
fun object_string2type = git_object_string2type(str : LibC::Char*) : Otype
fun object_typeisloose = git_object_typeisloose(type : Otype) : LibC::Int
fun object__size = git_object__size(type : Otype) : LibC::SizeT
fun object_peel = git_object_peel(peeled : X_Object*, object : X_Object, target_type : Otype) : LibC::Int
fun object_dup = git_object_dup(dest : X_Object*, source : X_Object) : LibC::Int
fun blob_lookup = git_blob_lookup(blob : X_Blob*, repo : X_Repository, id : Oid*) : LibC::Int
type X_Blob = Void*
fun blob_lookup_prefix = git_blob_lookup_prefix(blob : X_Blob*, repo : X_Repository, id : Oid*, len : LibC::SizeT) : LibC::Int
fun blob_free = git_blob_free(blob : X_Blob)
fun blob_id = git_blob_id(blob : X_Blob) : Oid*
fun blob_owner = git_blob_owner(blob : X_Blob) : X_Repository
fun blob_rawcontent = git_blob_rawcontent(blob : X_Blob) : Void*
fun blob_rawsize = git_blob_rawsize(blob : X_Blob) : OffT
alias Int64T = LibC::LongLong
alias OffT = Int64T
fun blob_filtered_content = git_blob_filtered_content(out : Buf*, blob : X_Blob, as_path : LibC::Char*, check_for_binary_data : LibC::Int) : LibC::Int
fun blob_create_fromworkdir = git_blob_create_fromworkdir(id : Oid*, repo : X_Repository, relative_path : LibC::Char*) : LibC::Int
fun blob_create_fromdisk = git_blob_create_fromdisk(id : Oid*, repo : X_Repository, path : LibC::Char*) : LibC::Int
fun blob_create_fromchunks = git_blob_create_fromchunks(id : Oid*, repo : X_Repository, hintpath : LibC::Char*, callback : BlobChunkCb, payload : Void*) : LibC::Int
alias BlobChunkCb = LibC::Char*, LibC::SizeT, Void* -> LibC::Int
fun blob_create_frombuffer = git_blob_create_frombuffer(id : Oid*, repo : X_Repository, buffer : Void*, len : LibC::SizeT) : LibC::Int
fun blob_is_binary = git_blob_is_binary(blob : X_Blob) : LibC::Int
BLAMENORMAL = 0
BLAMETRACKCOPIESSAMEFILE = 1
BLAMETRACKCOPIESSAMECOMMITMOVES = 2
BLAMETRACKCOPIESSAMECOMMITCOPIES = 4
BLAMETRACKCOPIESANYCOMMITCOPIES = 8
BLAMEFIRSTPARENT = 16
fun blame_init_options = git_blame_init_options(opts : BlameOptions*, version : LibC::UInt) : LibC::Int
struct BlameOptions
version : LibC::UInt
flags : Uint32T
min_match_characters : Uint16T
newest_commit : Oid
oldest_commit : Oid
min_line : Uint32T
max_line : Uint32T
end
alias Uint16T = LibC::UShort
fun blame_get_hunk_count = git_blame_get_hunk_count(blame : X_Blame) : Uint32T
type X_Blame = Void*
fun blame_get_hunk_byindex = git_blame_get_hunk_byindex(blame : X_Blame, index : Uint32T) : BlameHunk*
struct BlameHunk
lines_in_hunk : Uint16T
final_commit_id : Oid
final_start_line_number : Uint16T
final_signature : Signature*
orig_commit_id : Oid
orig_path : LibC::Char*
orig_start_line_number : Uint16T
orig_signature : Signature*
boundary : LibC::Char
end
struct Signature
name : LibC::Char*
email : LibC::Char*
when : Time
end
struct Time
time : TimeT
offset : LibC::Int
end
alias TimeT = Int64T
fun blame_get_hunk_byline = git_blame_get_hunk_byline(blame : X_Blame, lineno : Uint32T) : BlameHunk*
fun blame_file = git_blame_file(out : X_Blame*, repo : X_Repository, path : LibC::Char*, options : BlameOptions*) : LibC::Int
fun blame_buffer = git_blame_buffer(out : X_Blame*, reference : X_Blame, buffer : LibC::Char*, buffer_len : LibC::SizeT) : LibC::Int
fun blame_free = git_blame_free(blame : X_Blame)
fun branch_create = git_branch_create(out : X_Reference*, repo : X_Repository, branch_name : LibC::Char*, target : X_Commit, force : LibC::Int, signature : Signature*, log_message : LibC::Char*) : LibC::Int
type X_Reference = Void*
type X_Commit = Void*
fun branch_delete = git_branch_delete(branch : X_Reference) : LibC::Int
fun branch_iterator_new = git_branch_iterator_new(out : X_BranchIterator*, repo : X_Repository, list_flags : BranchT) : LibC::Int
type X_BranchIterator = Void*
enum BranchT
BRANCHLOCAL = 1
BRANCHREMOTE = 2
BRANCHALL = 3
end
fun branch_next = git_branch_next(out : X_Reference*, out_type : BranchT*, iter : X_BranchIterator) : LibC::Int
fun branch_iterator_free = git_branch_iterator_free(iter : X_BranchIterator)
fun branch_move = git_branch_move(out : X_Reference*, branch : X_Reference, new_branch_name : LibC::Char*, force : LibC::Int, signature : Signature*, log_message : LibC::Char*) : LibC::Int
fun branch_lookup = git_branch_lookup(out : X_Reference*, repo : X_Repository, branch_name : LibC::Char*, branch_type : BranchT) : LibC::Int
fun branch_name = git_branch_name(out : LibC::Char**, ref : X_Reference) : LibC::Int
fun branch_upstream = git_branch_upstream(out : X_Reference*, branch : X_Reference) : LibC::Int
fun branch_set_upstream = git_branch_set_upstream(branch : X_Reference, upstream_name : LibC::Char*) : LibC::Int
fun branch_upstream_name = git_branch_upstream_name(out : Buf*, repo : X_Repository, refname : LibC::Char*) : LibC::Int
fun branch_is_head = git_branch_is_head(branch : X_Reference) : LibC::Int
fun branch_remote_name = git_branch_remote_name(out : Buf*, repo : X_Repository, canonical_branch_name : LibC::Char*) : LibC::Int
fun tree_lookup = git_tree_lookup(out : X_Tree*, repo : X_Repository, id : Oid*) : LibC::Int
type X_Tree = Void*
fun tree_lookup_prefix = git_tree_lookup_prefix(out : X_Tree*, repo : X_Repository, id : Oid*, len : LibC::SizeT) : LibC::Int
fun tree_free = git_tree_free(tree : X_Tree)
fun tree_id = git_tree_id(tree : X_Tree) : Oid*
fun tree_owner = git_tree_owner(tree : X_Tree) : X_Repository
fun tree_entrycount = git_tree_entrycount(tree : X_Tree) : LibC::SizeT
fun tree_entry_byname = git_tree_entry_byname(tree : X_Tree, filename : LibC::Char*) : X_TreeEntry
type X_TreeEntry = Void*
fun tree_entry_byindex = git_tree_entry_byindex(tree : X_Tree, idx : LibC::SizeT) : X_TreeEntry
fun tree_entry_byid = git_tree_entry_byid(tree : X_Tree, id : Oid*) : X_TreeEntry
fun tree_entry_bypath = git_tree_entry_bypath(out : X_TreeEntry*, root : X_Tree, path : LibC::Char*) : LibC::Int
fun tree_entry_dup = git_tree_entry_dup(dest : X_TreeEntry*, source : X_TreeEntry) : LibC::Int
fun tree_entry_free = git_tree_entry_free(entry : X_TreeEntry)
fun tree_entry_name = git_tree_entry_name(entry : X_TreeEntry) : LibC::Char*
fun tree_entry_id = git_tree_entry_id(entry : X_TreeEntry) : Oid*
fun tree_entry_type = git_tree_entry_type(entry : X_TreeEntry) : Otype
fun tree_entry_filemode = git_tree_entry_filemode(entry : X_TreeEntry) : FilemodeT
enum FilemodeT
FILEMODENEW = 0
FILEMODETREE = 16384
FILEMODEBLOB = 33188
FILEMODEBLOBEXECUTABLE = 33261
FILEMODELINK = 40960
FILEMODECOMMIT = 57344
end
fun tree_entry_filemode_raw = git_tree_entry_filemode_raw(entry : X_TreeEntry) : FilemodeT
fun tree_entry_cmp = git_tree_entry_cmp(e1 : X_TreeEntry, e2 : X_TreeEntry) : LibC::Int
fun tree_entry_to_object = git_tree_entry_to_object(object_out : X_Object*, repo : X_Repository, entry : X_TreeEntry) : LibC::Int
fun treebuilder_create = git_treebuilder_create(out : X_Treebuilder*, source : X_Tree) : LibC::Int
type X_Treebuilder = Void*
fun treebuilder_clear = git_treebuilder_clear(bld : X_Treebuilder)
fun treebuilder_entrycount = git_treebuilder_entrycount(bld : X_Treebuilder) : LibC::UInt
fun treebuilder_free = git_treebuilder_free(bld : X_Treebuilder)
fun treebuilder_get = git_treebuilder_get(bld : X_Treebuilder, filename : LibC::Char*) : X_TreeEntry
fun treebuilder_insert = git_treebuilder_insert(out : X_TreeEntry*, bld : X_Treebuilder, filename : LibC::Char*, id : Oid*, filemode : FilemodeT) : LibC::Int
fun treebuilder_remove = git_treebuilder_remove(bld : X_Treebuilder, filename : LibC::Char*) : LibC::Int
fun treebuilder_filter = git_treebuilder_filter(bld : X_Treebuilder, filter : TreebuilderFilterCb, payload : Void*)
alias TreebuilderFilterCb = X_TreeEntry, Void* -> LibC::Int
fun treebuilder_write = git_treebuilder_write(id : Oid*, repo : X_Repository, bld : X_Treebuilder) : LibC::Int
TREEWALKPRE = 0
TREEWALKPOST = 1
fun tree_walk = git_tree_walk(tree : X_Tree, mode : TreewalkMode, callback : TreewalkCb, payload : Void*) : LibC::Int
enum TreewalkMode
TREEWALKPRE = 0
TREEWALKPOST = 1
end
alias TreewalkCb = LibC::Char*, X_TreeEntry, Void* -> LibC::Int
fun strarray_free = git_strarray_free(array : Strarray*)
struct Strarray
strings : LibC::Char**
count : LibC::SizeT
end
fun strarray_copy = git_strarray_copy(tgt : Strarray*, src : Strarray*) : LibC::Int
fun reference_lookup = git_reference_lookup(out : X_Reference*, repo : X_Repository, name : LibC::Char*) : LibC::Int
fun reference_name_to_id = git_reference_name_to_id(out : Oid*, repo : X_Repository, name : LibC::Char*) : LibC::Int
fun reference_dwim = git_reference_dwim(out : X_Reference*, repo : X_Repository, shorthand : LibC::Char*) : LibC::Int
fun reference_symbolic_create_matching = git_reference_symbolic_create_matching(out : X_Reference*, repo : X_Repository, name : LibC::Char*, target : LibC::Char*, force : LibC::Int, current_value : LibC::Char*, signature : Signature*, log_message : LibC::Char*) : LibC::Int
fun reference_symbolic_create = git_reference_symbolic_create(out : X_Reference*, repo : X_Repository, name : LibC::Char*, target : LibC::Char*, force : LibC::Int, signature : Signature*, log_message : LibC::Char*) : LibC::Int
fun reference_create = git_reference_create(out : X_Reference*, repo : X_Repository, name : LibC::Char*, id : Oid*, force : LibC::Int, signature : Signature*, log_message : LibC::Char*) : LibC::Int
fun reference_create_matching = git_reference_create_matching(out : X_Reference*, repo : X_Repository, name : LibC::Char*, id : Oid*, force : LibC::Int, current_id : Oid*, signature : Signature*, log_message : LibC::Char*) : LibC::Int
fun reference_target = git_reference_target(ref : X_Reference) : Oid*
fun reference_target_peel = git_reference_target_peel(ref : X_Reference) : Oid*
fun reference_symbolic_target = git_reference_symbolic_target(ref : X_Reference) : LibC::Char*
fun reference_type = git_reference_type(ref : X_Reference) : RefT
enum RefT
REFINVALID = 0
REFOID = 1
REFSYMBOLIC = 2
REFLISTALL = 3
end
fun reference_name = git_reference_name(ref : X_Reference) : LibC::Char*
fun reference_resolve = git_reference_resolve(out : X_Reference*, ref : X_Reference) : LibC::Int
fun reference_owner = git_reference_owner(ref : X_Reference) : X_Repository
fun reference_symbolic_set_target = git_reference_symbolic_set_target(out : X_Reference*, ref : X_Reference, target : LibC::Char*, signature : Signature*, log_message : LibC::Char*) : LibC::Int
fun reference_set_target = git_reference_set_target(out : X_Reference*, ref : X_Reference, id : Oid*, signature : Signature*, log_message : LibC::Char*) : LibC::Int
fun reference_rename = git_reference_rename(new_ref : X_Reference*, ref : X_Reference, new_name : LibC::Char*, force : LibC::Int, signature : Signature*, log_message : LibC::Char*) : LibC::Int
fun reference_delete = git_reference_delete(ref : X_Reference) : LibC::Int
fun reference_remove = git_reference_remove(repo : X_Repository, name : LibC::Char*) : LibC::Int
fun reference_list = git_reference_list(array : Strarray*, repo : X_Repository) : LibC::Int
fun reference_foreach = git_reference_foreach(repo : X_Repository, callback : ReferenceForeachCb, payload : Void*) : LibC::Int
alias ReferenceForeachCb = X_Reference, Void* -> LibC::Int
fun reference_foreach_name = git_reference_foreach_name(repo : X_Repository, callback : ReferenceForeachNameCb, payload : Void*) : LibC::Int
alias ReferenceForeachNameCb = LibC::Char*, Void* -> LibC::Int
fun reference_free = git_reference_free(ref : X_Reference)
fun reference_cmp = git_reference_cmp(ref1 : X_Reference, ref2 : X_Reference) : LibC::Int
fun reference_iterator_new = git_reference_iterator_new(out : X_ReferenceIterator*, repo : X_Repository) : LibC::Int
type X_ReferenceIterator = Void*
fun reference_iterator_glob_new = git_reference_iterator_glob_new(out : X_ReferenceIterator*, repo : X_Repository, glob : LibC::Char*) : LibC::Int
fun reference_next = git_reference_next(out : X_Reference*, iter : X_ReferenceIterator) : LibC::Int
fun reference_next_name = git_reference_next_name(out : LibC::Char**, iter : X_ReferenceIterator) : LibC::Int
fun reference_iterator_free = git_reference_iterator_free(iter : X_ReferenceIterator)
fun reference_foreach_glob = git_reference_foreach_glob(repo : X_Repository, glob : LibC::Char*, callback : ReferenceForeachNameCb, payload : Void*) : LibC::Int
fun reference_has_log = git_reference_has_log(repo : X_Repository, refname : LibC::Char*) : LibC::Int
fun reference_ensure_log = git_reference_ensure_log(repo : X_Repository, refname : LibC::Char*) : LibC::Int
fun reference_is_branch = git_reference_is_branch(ref : X_Reference) : LibC::Int
fun reference_is_remote = git_reference_is_remote(ref : X_Reference) : LibC::Int
fun reference_is_tag = git_reference_is_tag(ref : X_Reference) : LibC::Int
fun reference_is_note = git_reference_is_note(ref : X_Reference) : LibC::Int
REFFORMATNORMAL = 0
REFFORMATALLOWONELEVEL = 1
REFFORMATREFSPECPATTERN = 2
REFFORMATREFSPECSHORTHAND = 4
fun reference_normalize_name = git_reference_normalize_name(buffer_out : LibC::Char*, buffer_size : LibC::SizeT, name : LibC::Char*, flags : LibC::UInt) : LibC::Int
fun reference_peel = git_reference_peel(out : X_Object*, ref : X_Reference, type : Otype) : LibC::Int
fun reference_is_valid_name = git_reference_is_valid_name(refname : LibC::Char*) : LibC::Int
fun reference_shorthand = git_reference_shorthand(ref : X_Reference) : LibC::Char*
DIFFNORMAL = 0
DIFFREVERSE = 1
DIFFINCLUDEIGNORED = 2
DIFFRECURSEIGNOREDDIRS = 4
DIFFINCLUDEUNTRACKED = 8
DIFFRECURSEUNTRACKEDDIRS = 16
DIFFINCLUDEUNMODIFIED = 32
DIFFINCLUDETYPECHANGE = 64
DIFFINCLUDETYPECHANGETREES = 128
DIFFIGNOREFILEMODE = 256
DIFFIGNORESUBMODULES = 512
DIFFIGNORECASE = 1024
DIFFDISABLEPATHSPECMATCH = 4096
DIFFSKIPBINARYCHECK = 8192
DIFFENABLEFASTUNTRACKEDDIRS = 16384
DIFFUPDATEINDEX = 32768
DIFFFORCETEXT = 1048576
DIFFFORCEBINARY = 2097152
DIFFIGNOREWHITESPACE = 4194304
DIFFIGNOREWHITESPACECHANGE = 8388608
DIFFIGNOREWHITESPACEEOL = 16777216
DIFFSHOWUNTRACKEDCONTENT = 33554432
DIFFSHOWUNMODIFIED = 67108864
DIFFPATIENCE = 268435456
DIFFMINIMAL = 536870912
DIFFSHOWBINARY = 1073741824
DIFFFLAGBINARY = 1
DIFFFLAGNOTBINARY = 2
DIFFFLAGVALIDID = 4
DELTAUNMODIFIED = 0
DELTAADDED = 1
DELTADELETED = 2
DELTAMODIFIED = 3
DELTARENAMED = 4
DELTACOPIED = 5
DELTAIGNORED = 6
DELTAUNTRACKED = 7
DELTATYPECHANGE = 8
fun diff_init_options = git_diff_init_options(opts : DiffOptions*, version : LibC::UInt) : LibC::Int
struct DiffOptions
version : LibC::UInt
flags : Uint32T
ignore_submodules : SubmoduleIgnoreT
pathspec : Strarray
notify_cb : DiffNotifyCb
notify_payload : Void*
context_lines : Uint16T
interhunk_lines : Uint16T
id_abbrev : Uint16T
max_size : OffT
old_prefix : LibC::Char*
new_prefix : LibC::Char*
end
enum SubmoduleIgnoreT
SUBMODULEIGNORERESET = -1
SUBMODULEIGNORENONE = 1
SUBMODULEIGNOREUNTRACKED = 2
SUBMODULEIGNOREDIRTY = 3
SUBMODULEIGNOREALL = 4
SUBMODULEIGNOREDEFAULT = 0
end
type X_Diff = Void*
struct DiffDelta
status : DeltaT
flags : Uint32T
similarity : Uint16T
nfiles : Uint16T
old_file : DiffFile
new_file : DiffFile
end
alias DiffNotifyCb = X_Diff, DiffDelta*, LibC::Char*, Void* -> LibC::Int
enum DeltaT
DELTAUNMODIFIED = 0
DELTAADDED = 1
DELTADELETED = 2
DELTAMODIFIED = 3
DELTARENAMED = 4
DELTACOPIED = 5
DELTAIGNORED = 6
DELTAUNTRACKED = 7
DELTATYPECHANGE = 8
end
struct DiffFile
id : Oid
path : LibC::Char*
size : OffT
flags : Uint32T
mode : Uint16T
end
DIFFLINECONTEXT = 32
DIFFLINEADDITION = 43
DIFFLINEDELETION = 45
DIFFLINECONTEXTEOFNL = 61
DIFFLINEADDEOFNL = 62
DIFFLINEDELEOFNL = 60
DIFFLINEFILEHDR = 70
DIFFLINEHUNKHDR = 72
DIFFLINEBINARY = 66
DIFFFINDBYCONFIG = 0
DIFFFINDRENAMES = 1
DIFFFINDRENAMESFROMREWRITES = 2
DIFFFINDCOPIES = 4
DIFFFINDCOPIESFROMUNMODIFIED = 8
DIFFFINDREWRITES = 16
DIFFBREAKREWRITES = 32
DIFFFINDANDBREAKREWRITES = 48
DIFFFINDFORUNTRACKED = 64
DIFFFINDALL = 255
DIFFFINDIGNORELEADINGWHITESPACE = 0
DIFFFINDIGNOREWHITESPACE = 4096
DIFFFINDDONTIGNOREWHITESPACE = 8192
DIFFFINDEXACTMATCHONLY = 16384
DIFFBREAKREWRITESFORRENAMESONLY = 32768
DIFFFINDREMOVEUNMODIFIED = 65536
fun diff_find_init_options = git_diff_find_init_options(opts : DiffFindOptions*, version : LibC::UInt) : LibC::Int
struct DiffFindOptions
version : LibC::UInt
flags : Uint32T
rename_threshold : Uint16T
rename_from_rewrite_threshold : Uint16T
copy_threshold : Uint16T
break_rewrite_threshold : Uint16T
rename_limit : LibC::SizeT
metric : DiffSimilarityMetric*
end
struct DiffSimilarityMetric
file_signature : Void**, DiffFile*, LibC::Char*, Void* -> LibC::Int
buffer_signature : Void**, DiffFile*, LibC::Char*, LibC::SizeT, Void* -> LibC::Int
free_signature : Void*, Void* -> Void
similarity : LibC::Int*, Void*, Void*, Void* -> LibC::Int
payload : Void*
end
fun diff_free = git_diff_free(diff : X_Diff)
fun diff_tree_to_tree = git_diff_tree_to_tree(diff : X_Diff*, repo : X_Repository, old_tree : X_Tree, new_tree : X_Tree, opts : DiffOptions*) : LibC::Int
fun diff_tree_to_index = git_diff_tree_to_index(diff : X_Diff*, repo : X_Repository, old_tree : X_Tree, index : X_Index, opts : DiffOptions*) : LibC::Int
type X_Index = Void*
fun diff_index_to_workdir = git_diff_index_to_workdir(diff : X_Diff*, repo : X_Repository, index : X_Index, opts : DiffOptions*) : LibC::Int
fun diff_tree_to_workdir = git_diff_tree_to_workdir(diff : X_Diff*, repo : X_Repository, old_tree : X_Tree, opts : DiffOptions*) : LibC::Int
fun diff_tree_to_workdir_with_index = git_diff_tree_to_workdir_with_index(diff : X_Diff*, repo : X_Repository, old_tree : X_Tree, opts : DiffOptions*) : LibC::Int
fun diff_merge = git_diff_merge(onto : X_Diff, from : X_Diff) : LibC::Int
fun diff_find_similar = git_diff_find_similar(diff : X_Diff, options : DiffFindOptions*) : LibC::Int
fun diff_num_deltas = git_diff_num_deltas(diff : X_Diff) : LibC::SizeT
fun diff_num_deltas_of_type = git_diff_num_deltas_of_type(diff : X_Diff, type : DeltaT) : LibC::SizeT
fun diff_get_delta = git_diff_get_delta(diff : X_Diff, idx : LibC::SizeT) : DiffDelta*
fun diff_is_sorted_icase = git_diff_is_sorted_icase(diff : X_Diff) : LibC::Int
fun diff_foreach = git_diff_foreach(diff : X_Diff, file_cb : DiffFileCb, hunk_cb : DiffHunkCb, line_cb : DiffLineCb, payload : Void*) : LibC::Int
alias DiffFileCb = DiffDelta*, LibC::Float, Void* -> LibC::Int
struct DiffHunk
old_start : LibC::Int
old_lines : LibC::Int
new_start : LibC::Int
new_lines : LibC::Int
header_len : LibC::SizeT
header : LibC::Char[128]
end
alias DiffHunkCb = DiffDelta*, DiffHunk*, Void* -> LibC::Int
struct DiffLine
origin : LibC::Char
old_lineno : LibC::Int
new_lineno : LibC::Int
num_lines : LibC::Int
content_len : LibC::SizeT
content_offset : OffT
content : LibC::Char*
end
alias DiffLineCb = DiffDelta*, DiffHunk*, DiffLine*, Void* -> LibC::Int
fun diff_status_char = git_diff_status_char(status : DeltaT) : LibC::Char
DIFFFORMATPATCH = 1
DIFFFORMATPATCHHEADER = 2
DIFFFORMATRAW = 3
DIFFFORMATNAMEONLY = 4
DIFFFORMATNAMESTATUS = 5
fun diff_print = git_diff_print(diff : X_Diff, format : DiffFormatT, print_cb : DiffLineCb, payload : Void*) : LibC::Int
enum DiffFormatT
DIFFFORMATPATCH = 1
DIFFFORMATPATCHHEADER = 2
DIFFFORMATRAW = 3
DIFFFORMATNAMEONLY = 4
DIFFFORMATNAMESTATUS = 5
end
fun diff_blobs = git_diff_blobs(old_blob : X_Blob, old_as_path : LibC::Char*, new_blob : X_Blob, new_as_path : LibC::Char*, options : DiffOptions*, file_cb : DiffFileCb, hunk_cb : DiffHunkCb, line_cb : DiffLineCb, payload : Void*) : LibC::Int
fun diff_blob_to_buffer = git_diff_blob_to_buffer(old_blob : X_Blob, old_as_path : LibC::Char*, buffer : LibC::Char*, buffer_len : LibC::SizeT, buffer_as_path : LibC::Char*, options : DiffOptions*, file_cb : DiffFileCb, hunk_cb : DiffHunkCb, line_cb : DiffLineCb, payload : Void*) : LibC::Int
fun diff_buffers = git_diff_buffers(old_buffer : Void*, old_len : LibC::SizeT, old_as_path : LibC::Char*, new_buffer : Void*, new_len : LibC::SizeT, new_as_path : LibC::Char*, options : DiffOptions*, file_cb : DiffFileCb, hunk_cb : DiffHunkCb, line_cb : DiffLineCb, payload : Void*) : LibC::Int
DIFFSTATSNONE = 0
DIFFSTATSFULL = 1
DIFFSTATSSHORT = 2
DIFFSTATSNUMBER = 4
DIFFSTATSINCLUDESUMMARY = 8
fun diff_get_stats = git_diff_get_stats(out : X_DiffStats*, diff : X_Diff) : LibC::Int
type X_DiffStats = Void*
fun diff_stats_files_changed = git_diff_stats_files_changed(stats : X_DiffStats) : LibC::SizeT
fun diff_stats_insertions = git_diff_stats_insertions(stats : X_DiffStats) : LibC::SizeT
fun diff_stats_deletions = git_diff_stats_deletions(stats : X_DiffStats) : LibC::SizeT
fun diff_stats_to_buf = git_diff_stats_to_buf(out : Buf*, stats : X_DiffStats, format : DiffStatsFormatT, width : LibC::SizeT) : LibC::Int
enum DiffStatsFormatT
DIFFSTATSNONE = 0
DIFFSTATSFULL = 1
DIFFSTATSSHORT = 2
DIFFSTATSNUMBER = 4
DIFFSTATSINCLUDESUMMARY = 8
end
fun diff_stats_free = git_diff_stats_free(stats : X_DiffStats)
DIFFFORMATEMAILNONE = 0
DIFFFORMATEMAILEXCLUDESUBJECTPATCHMARKER = 1
fun diff_format_email = git_diff_format_email(out : Buf*, diff : X_Diff, opts : DiffFormatEmailOptions*) : LibC::Int
struct DiffFormatEmailOptions
version : LibC::UInt
flags : DiffFormatEmailFlagsT
patch_no : LibC::SizeT
total_patches : LibC::SizeT
id : Oid*
summary : LibC::Char*
author : Signature*
end
enum DiffFormatEmailFlagsT
DIFFFORMATEMAILNONE = 0
DIFFFORMATEMAILEXCLUDESUBJECTPATCHMARKER = 1
end
fun diff_commit_as_email = git_diff_commit_as_email(out : Buf*, repo : X_Repository, commit : X_Commit, patch_no : LibC::SizeT, total_patches : LibC::SizeT, flags : DiffFormatEmailFlagsT, diff_opts : DiffOptions*) : LibC::Int
fun diff_format_email_init_options = git_diff_format_email_init_options(opts : DiffFormatEmailOptions*, version : LibC::UInt) : LibC::Int
CHECKOUTNONE = 0
CHECKOUTSAFE = 1
CHECKOUTSAFECREATE = 2
CHECKOUTFORCE = 4
CHECKOUTALLOWCONFLICTS = 16
CHECKOUTREMOVEUNTRACKED = 32
CHECKOUTREMOVEIGNORED = 64
CHECKOUTUPDATEONLY = 128
CHECKOUTDONTUPDATEINDEX = 256
CHECKOUTNOREFRESH = 512
CHECKOUTSKIPUNMERGED = 1024
CHECKOUTUSEOURS = 2048
CHECKOUTUSETHEIRS = 4096
CHECKOUTDISABLEPATHSPECMATCH = 8192
CHECKOUTSKIPLOCKEDDIRECTORIES = 262144
CHECKOUTDONTOVERWRITEIGNORED = 524288
CHECKOUTCONFLICTSTYLEMERGE = 1048576
CHECKOUTCONFLICTSTYLEDIFF3 = 2097152
CHECKOUTUPDATESUBMODULES = 65536
CHECKOUTUPDATESUBMODULESIFCHANGED = 131072
CHECKOUTNOTIFYNONE = 0
CHECKOUTNOTIFYCONFLICT = 1
CHECKOUTNOTIFYDIRTY = 2
CHECKOUTNOTIFYUPDATED = 4
CHECKOUTNOTIFYUNTRACKED = 8
CHECKOUTNOTIFYIGNORED = 16
CHECKOUTNOTIFYALL = 65535
fun checkout_init_options = git_checkout_init_options(opts : CheckoutOptions*, version : LibC::UInt) : LibC::Int
struct CheckoutOptions
version : LibC::UInt
checkout_strategy : LibC::UInt
disable_filters : LibC::Int
dir_mode : LibC::UInt
file_mode : LibC::UInt
file_open_flags : LibC::Int
notify_flags : LibC::UInt
notify_cb : CheckoutNotifyCb
notify_payload : Void*
progress_cb : CheckoutProgressCb
progress_payload : Void*
paths : Strarray
baseline : X_Tree
target_directory : LibC::Char*
ancestor_label : LibC::Char*
our_label : LibC::Char*
their_label : LibC::Char*
end
enum CheckoutNotifyT
CHECKOUTNOTIFYNONE = 0
CHECKOUTNOTIFYCONFLICT = 1
CHECKOUTNOTIFYDIRTY = 2
CHECKOUTNOTIFYUPDATED = 4
CHECKOUTNOTIFYUNTRACKED = 8
CHECKOUTNOTIFYIGNORED = 16
CHECKOUTNOTIFYALL = 65535
end
alias CheckoutNotifyCb = CheckoutNotifyT, LibC::Char*, DiffFile*, DiffFile*, DiffFile*, Void* -> LibC::Int
alias CheckoutProgressCb = LibC::Char*, LibC::SizeT, LibC::SizeT, Void* -> Void
fun checkout_head = git_checkout_head(repo : X_Repository, opts : CheckoutOptions*) : LibC::Int
fun checkout_index = git_checkout_index(repo : X_Repository, index : X_Index, opts : CheckoutOptions*) : LibC::Int
fun checkout_tree = git_checkout_tree(repo : X_Repository, treeish : X_Object, opts : CheckoutOptions*) : LibC::Int
fun indexer_new = git_indexer_new(out : X_Indexer*, path : LibC::Char*, mode : LibC::UInt, odb : X_Odb, progress_cb : TransferProgressCb, progress_cb_payload : Void*) : LibC::Int
type X_Indexer = Void*
type X_Odb = Void*
struct TransferProgress
total_objects : LibC::UInt
indexed_objects : LibC::UInt
received_objects : LibC::UInt
local_objects : LibC::UInt
total_deltas : LibC::UInt
indexed_deltas : LibC::UInt
received_bytes : LibC::SizeT
end
alias TransferProgressCb = TransferProgress*, Void* -> LibC::Int
fun indexer_append = git_indexer_append(idx : X_Indexer, data : Void*, size : LibC::SizeT, stats : TransferProgress*) : LibC::Int
fun indexer_commit = git_indexer_commit(idx : X_Indexer, stats : TransferProgress*) : LibC::Int
fun indexer_hash = git_indexer_hash(idx : X_Indexer) : Oid*
fun indexer_free = git_indexer_free(idx : X_Indexer)
IDXENTRYEXTENDED = 16384
IDXENTRYVALID = 32768
IDXENTRYINTENTTOADD = 8192
IDXENTRYSKIPWORKTREE = 16384
IDXENTRYEXTENDED2 = 32768
IDXENTRYEXTENDEDFLAGS = 24576
IDXENTRYUPDATE = 1
IDXENTRYREMOVE = 2
IDXENTRYUPTODATE = 4
IDXENTRYADDED = 8
IDXENTRYHASHED = 16
IDXENTRYUNHASHED = 32
IDXENTRYWTREMOVE = 64
IDXENTRYCONFLICTED = 128
IDXENTRYUNPACKED = 256
IDXENTRYNEWSKIPWORKTREE = 512
INDEXCAPIGNORECASE = 1
INDEXCAPNOFILEMODE = 2
INDEXCAPNOSYMLINKS = 4
INDEXCAPFROMOWNER = -1
INDEXADDDEFAULT = 0
INDEXADDFORCE = 1
INDEXADDDISABLEPATHSPECMATCH = 2
INDEXADDCHECKPATHSPEC = 4
fun index_open = git_index_open(out : X_Index*, index_path : LibC::Char*) : LibC::Int
fun index_new = git_index_new(out : X_Index*) : LibC::Int
fun index_free = git_index_free(index : X_Index)
fun index_owner = git_index_owner(index : X_Index) : X_Repository
fun index_caps = git_index_caps(index : X_Index) : LibC::Int
fun index_set_caps = git_index_set_caps(index : X_Index, caps : LibC::Int) : LibC::Int
fun index_read = git_index_read(index : X_Index, force : LibC::Int) : LibC::Int
fun index_write = git_index_write(index : X_Index) : LibC::Int
fun index_path = git_index_path(index : X_Index) : LibC::Char*
fun index_read_tree = git_index_read_tree(index : X_Index, tree : X_Tree) : LibC::Int
fun index_write_tree = git_index_write_tree(out : Oid*, index : X_Index) : LibC::Int
fun index_write_tree_to = git_index_write_tree_to(out : Oid*, index : X_Index, repo : X_Repository) : LibC::Int
fun index_entrycount = git_index_entrycount(index : X_Index) : LibC::SizeT
fun index_clear = git_index_clear(index : X_Index) : LibC::Int
fun index_get_byindex = git_index_get_byindex(index : X_Index, n : LibC::SizeT) : IndexEntry*
struct IndexEntry
ctime : IndexTime
mtime : IndexTime
dev : LibC::UInt
ino : LibC::UInt
mode : LibC::UInt
uid : LibC::UInt
gid : LibC::UInt
file_size : OffT
id : Oid
flags : LibC::UShort
flags_extended : LibC::UShort
path : LibC::Char*
end
struct IndexTime
seconds : TimeT
nanoseconds : LibC::UInt
end
fun index_get_bypath = git_index_get_bypath(index : X_Index, path : LibC::Char*, stage : LibC::Int) : IndexEntry*
fun index_remove = git_index_remove(index : X_Index, path : LibC::Char*, stage : LibC::Int) : LibC::Int
fun index_remove_directory = git_index_remove_directory(index : X_Index, dir : LibC::Char*, stage : LibC::Int) : LibC::Int
fun index_add = git_index_add(index : X_Index, source_entry : IndexEntry*) : LibC::Int
fun index_entry_stage = git_index_entry_stage(entry : IndexEntry*) : LibC::Int
fun index_add_bypath = git_index_add_bypath(index : X_Index, path : LibC::Char*) : LibC::Int
fun index_remove_bypath = git_index_remove_bypath(index : X_Index, path : LibC::Char*) : LibC::Int
fun index_add_all = git_index_add_all(index : X_Index, pathspec : Strarray*, flags : LibC::UInt, callback : IndexMatchedPathCb, payload : Void*) : LibC::Int
alias IndexMatchedPathCb = LibC::Char*, LibC::Char*, Void* -> LibC::Int
fun index_remove_all = git_index_remove_all(index : X_Index, pathspec : Strarray*, callback : IndexMatchedPathCb, payload : Void*) : LibC::Int
fun index_update_all = git_index_update_all(index : X_Index, pathspec : Strarray*, callback : IndexMatchedPathCb, payload : Void*) : LibC::Int
fun index_find = git_index_find(at_pos : LibC::SizeT*, index : X_Index, path : LibC::Char*) : LibC::Int
fun index_conflict_add = git_index_conflict_add(index : X_Index, ancestor_entry : IndexEntry*, our_entry : IndexEntry*, their_entry : IndexEntry*) : LibC::Int
fun index_conflict_get = git_index_conflict_get(ancestor_out : IndexEntry**, our_out : IndexEntry**, their_out : IndexEntry**, index : X_Index, path : LibC::Char*) : LibC::Int
fun index_conflict_remove = git_index_conflict_remove(index : X_Index, path : LibC::Char*) : LibC::Int
fun index_conflict_cleanup = git_index_conflict_cleanup(index : X_Index) : LibC::Int
fun index_has_conflicts = git_index_has_conflicts(index : X_Index) : LibC::Int
fun index_conflict_iterator_new = git_index_conflict_iterator_new(iterator_out : X_IndexConflictIterator*, index : X_Index) : LibC::Int
type X_IndexConflictIterator = Void*
fun index_conflict_next = git_index_conflict_next(ancestor_out : IndexEntry**, our_out : IndexEntry**, their_out : IndexEntry**, iterator : X_IndexConflictIterator) : LibC::Int
fun index_conflict_iterator_free = git_index_conflict_iterator_free(iterator : X_IndexConflictIterator)
fun merge_file_init_input = git_merge_file_init_input(opts : MergeFileInput*, version : LibC::UInt) : LibC::Int
struct MergeFileInput
version : LibC::UInt
ptr : LibC::Char*
size : LibC::SizeT
path : LibC::Char*
mode : LibC::UInt
end
MERGETREEFINDRENAMES = 1
MERGEFILEFAVORNORMAL = 0
MERGEFILEFAVOROURS = 1
MERGEFILEFAVORTHEIRS = 2
MERGEFILEFAVORUNION = 3
MERGEFILEDEFAULT = 0
MERGEFILESTYLEMERGE = 1
MERGEFILESTYLEDIFF3 = 2
MERGEFILESIMPLIFYALNUM = 4
fun merge_file_init_options = git_merge_file_init_options(opts : MergeFileOptions*, version : LibC::UInt) : LibC::Int
struct MergeFileOptions
version : LibC::UInt
ancestor_label : LibC::Char*
our_label : LibC::Char*
their_label : LibC::Char*
favor : MergeFileFavorT
flags : MergeFileFlagsT
end
enum MergeFileFavorT
MERGEFILEFAVORNORMAL = 0
MERGEFILEFAVOROURS = 1
MERGEFILEFAVORTHEIRS = 2
MERGEFILEFAVORUNION = 3
end
enum MergeFileFlagsT
MERGEFILEDEFAULT = 0
MERGEFILESTYLEMERGE = 1
MERGEFILESTYLEDIFF3 = 2
MERGEFILESIMPLIFYALNUM = 4
end
fun merge_init_options = git_merge_init_options(opts : MergeOptions*, version : LibC::UInt) : LibC::Int
struct MergeOptions
version : LibC::UInt
flags : MergeTreeFlagT
rename_threshold : LibC::UInt
target_limit : LibC::UInt
metric : DiffSimilarityMetric*
file_favor : MergeFileFavorT
end
enum MergeTreeFlagT
MERGETREEFINDRENAMES = 1
end
MERGEANALYSISNONE = 0
MERGEANALYSISNORMAL = 1
MERGEANALYSISUPTODATE = 2
MERGEANALYSISFASTFORWARD = 4
MERGEANALYSISUNBORN = 8
MERGEPREFERENCENONE = 0
MERGEPREFERENCENOFASTFORWARD = 1
MERGEPREFERENCEFASTFORWARDONLY = 2
fun merge_analysis = git_merge_analysis(analysis_out : MergeAnalysisT*, preference_out : MergePreferenceT*, repo : X_Repository, their_heads : X_MergeHead*, their_heads_len : LibC::SizeT) : LibC::Int
enum MergeAnalysisT
MERGEANALYSISNONE = 0
MERGEANALYSISNORMAL = 1
MERGEANALYSISUPTODATE = 2
MERGEANALYSISFASTFORWARD = 4
MERGEANALYSISUNBORN = 8
end
enum MergePreferenceT
MERGEPREFERENCENONE = 0
MERGEPREFERENCENOFASTFORWARD = 1
MERGEPREFERENCEFASTFORWARDONLY = 2
end
type X_MergeHead = Void*
fun merge_base = git_merge_base(out : Oid*, repo : X_Repository, one : Oid*, two : Oid*) : LibC::Int
fun merge_base_many = git_merge_base_many(out : Oid*, repo : X_Repository, length : LibC::SizeT, input_array : Oid*) : LibC::Int
fun merge_base_octopus = git_merge_base_octopus(out : Oid*, repo : X_Repository, length : LibC::SizeT, input_array : Oid*) : LibC::Int
fun merge_head_from_ref = git_merge_head_from_ref(out : X_MergeHead*, repo : X_Repository, ref : X_Reference) : LibC::Int
fun merge_head_from_fetchhead = git_merge_head_from_fetchhead(out : X_MergeHead*, repo : X_Repository, branch_name : LibC::Char*, remote_url : LibC::Char*, oid : Oid*) : LibC::Int
fun merge_head_from_id = git_merge_head_from_id(out : X_MergeHead*, repo : X_Repository, id : Oid*) : LibC::Int
fun merge_head_id = git_merge_head_id(head : X_MergeHead) : Oid*
fun merge_head_free = git_merge_head_free(head : X_MergeHead)
fun merge_file = git_merge_file(out : MergeFileResult*, ancestor : MergeFileInput*, ours : MergeFileInput*, theirs : MergeFileInput*, opts : MergeFileOptions*) : LibC::Int
struct MergeFileResult
automergeable : LibC::UInt
path : LibC::Char*
mode : LibC::UInt
ptr : LibC::Char*
len : LibC::SizeT
end
fun merge_file_from_index = git_merge_file_from_index(out : MergeFileResult*, repo : X_Repository, ancestor : IndexEntry*, ours : IndexEntry*, theirs : IndexEntry*, opts : MergeFileOptions*) : LibC::Int
fun merge_file_result_free = git_merge_file_result_free(result : MergeFileResult*)
fun merge_trees = git_merge_trees(out : X_Index*, repo : X_Repository, ancestor_tree : X_Tree, our_tree : X_Tree, their_tree : X_Tree, opts : MergeOptions*) : LibC::Int
fun merge_commits = git_merge_commits(out : X_Index*, repo : X_Repository, our_commit : X_Commit, their_commit : X_Commit, opts : MergeOptions*) : LibC::Int
fun merge = git_merge(repo : X_Repository, their_heads : X_MergeHead*, their_heads_len : LibC::SizeT, merge_opts : MergeOptions*, checkout_opts : CheckoutOptions*) : LibC::Int
fun cherry_pick_init_options = git_cherry_pick_init_options(opts : CherryPickOptions*, version : LibC::UInt) : LibC::Int
struct CherryPickOptions
version : LibC::UInt
mainline : LibC::UInt
merge_opts : MergeOptions
checkout_opts : CheckoutOptions
end
fun cherry_pick_commit = git_cherry_pick_commit(out : X_Index*, repo : X_Repository, cherry_pick_commit : X_Commit, our_commit : X_Commit, mainline : LibC::UInt, merge_options : MergeOptions*) : LibC::Int
fun cherry_pick = git_cherry_pick(repo : X_Repository, commit : X_Commit, cherry_pick_options : CherryPickOptions*) : LibC::Int
fun repository_open = git_repository_open(out : X_Repository*, path : LibC::Char*) : LibC::Int
fun repository_wrap_odb = git_repository_wrap_odb(out : X_Repository*, odb : X_Odb) : LibC::Int
fun repository_discover = git_repository_discover(out : Buf*, start_path : LibC::Char*, across_fs : LibC::Int, ceiling_dirs : LibC::Char*) : LibC::Int
REPOSITORYOPENNOSEARCH = 1
REPOSITORYOPENCROSSFS = 2
REPOSITORYOPENBARE = 4
fun repository_open_ext = git_repository_open_ext(out : X_Repository*, path : LibC::Char*, flags : LibC::UInt, ceiling_dirs : LibC::Char*) : LibC::Int
fun repository_open_bare = git_repository_open_bare(out : X_Repository*, bare_path : LibC::Char*) : LibC::Int
fun repository_free = git_repository_free(repo : X_Repository)
fun repository_init = git_repository_init(out : X_Repository*, path : LibC::Char*, is_bare : LibC::UInt) : LibC::Int
REPOSITORYINITBARE = 1
REPOSITORYINITNOREINIT = 2
REPOSITORYINITNODOTGITDIR = 4
REPOSITORYINITMKDIR = 8
REPOSITORYINITMKPATH = 16
REPOSITORYINITEXTERNALTEMPLATE = 32
REPOSITORYINITSHAREDUMASK = 0
REPOSITORYINITSHAREDGROUP = 1533
REPOSITORYINITSHAREDALL = 1535
fun repository_init_init_options = git_repository_init_init_options(opts : RepositoryInitOptions*, version : LibC::UInt) : LibC::Int
struct RepositoryInitOptions
version : LibC::UInt
flags : Uint32T
mode : Uint32T
workdir_path : LibC::Char*
description : LibC::Char*
template_path : LibC::Char*
initial_head : LibC::Char*
origin_url : LibC::Char*
end
fun repository_init_ext = git_repository_init_ext(out : X_Repository*, repo_path : LibC::Char*, opts : RepositoryInitOptions*) : LibC::Int
fun repository_head = git_repository_head(out : X_Reference*, repo : X_Repository) : LibC::Int
fun repository_head_detached = git_repository_head_detached(repo : X_Repository) : LibC::Int
fun repository_head_unborn = git_repository_head_unborn(repo : X_Repository) : LibC::Int
fun repository_is_empty = git_repository_is_empty(repo : X_Repository) : LibC::Int
fun repository_path = git_repository_path(repo : X_Repository) : LibC::Char*
fun repository_workdir = git_repository_workdir(repo : X_Repository) : LibC::Char*
fun repository_set_workdir = git_repository_set_workdir(repo : X_Repository, workdir : LibC::Char*, update_gitlink : LibC::Int) : LibC::Int
fun repository_is_bare = git_repository_is_bare(repo : X_Repository) : LibC::Int
fun repository_config = git_repository_config(out : X_Config*, repo : X_Repository) : LibC::Int
type X_Config = Void*
fun repository_config_snapshot = git_repository_config_snapshot(out : X_Config*, repo : X_Repository) : LibC::Int
fun repository_odb = git_repository_odb(out : X_Odb*, repo : X_Repository) : LibC::Int
fun repository_refdb = git_repository_refdb(out : X_Refdb*, repo : X_Repository) : LibC::Int
type X_Refdb = Void*
fun repository_index = git_repository_index(out : X_Index*, repo : X_Repository) : LibC::Int
fun repository_message = git_repository_message(out : Buf*, repo : X_Repository) : LibC::Int
fun repository_message_remove = git_repository_message_remove(repo : X_Repository) : LibC::Int
fun repository_state_cleanup = git_repository_state_cleanup(repo : X_Repository) : LibC::Int
fun repository_fetchhead_foreach = git_repository_fetchhead_foreach(repo : X_Repository, callback : RepositoryFetchheadForeachCb, payload : Void*) : LibC::Int
alias RepositoryFetchheadForeachCb = LibC::Char*, LibC::Char*, Oid*, LibC::UInt, Void* -> LibC::Int
fun repository_mergehead_foreach = git_repository_mergehead_foreach(repo : X_Repository, callback : RepositoryMergeheadForeachCb, payload : Void*) : LibC::Int
alias RepositoryMergeheadForeachCb = Oid*, Void* -> LibC::Int
fun repository_hashfile = git_repository_hashfile(out : Oid*, repo : X_Repository, path : LibC::Char*, type : Otype, as_path : LibC::Char*) : LibC::Int
fun repository_set_head = git_repository_set_head(repo : X_Repository, refname : LibC::Char*, signature : Signature*, log_message : LibC::Char*) : LibC::Int
fun repository_set_head_detached = git_repository_set_head_detached(repo : X_Repository, commitish : Oid*, signature : Signature*, log_message : LibC::Char*) : LibC::Int
fun repository_detach_head = git_repository_detach_head(repo : X_Repository, signature : Signature*, reflog_message : LibC::Char*) : LibC::Int
REPOSITORYSTATENONE = 0
REPOSITORYSTATEMERGE = 1
REPOSITORYSTATEREVERT = 2
REPOSITORYSTATECHERRYPICK = 3
REPOSITORYSTATEBISECT = 4
REPOSITORYSTATEREBASE = 5
REPOSITORYSTATEREBASEINTERACTIVE = 6
REPOSITORYSTATEREBASEMERGE = 7
REPOSITORYSTATEAPPLYMAILBOX = 8
REPOSITORYSTATEAPPLYMAILBOXORREBASE = 9
fun repository_state = git_repository_state(repo : X_Repository) : LibC::Int
fun repository_set_namespace = git_repository_set_namespace(repo : X_Repository, nmspace : LibC::Char*) : LibC::Int
fun repository_get_namespace = git_repository_get_namespace(repo : X_Repository) : LibC::Char*
fun repository_is_shallow = git_repository_is_shallow(repo : X_Repository) : LibC::Int
DIRECTIONFETCH = 0
DIRECTIONPUSH = 1
fun refspec_src = git_refspec_src(refspec : X_Refspec) : LibC::Char*
type X_Refspec = Void*
fun refspec_dst = git_refspec_dst(refspec : X_Refspec) : LibC::Char*
fun refspec_string = git_refspec_string(refspec : X_Refspec) : LibC::Char*
fun refspec_force = git_refspec_force(refspec : X_Refspec) : LibC::Int
fun refspec_direction = git_refspec_direction(spec : X_Refspec) : Direction
enum Direction
DIRECTIONFETCH = 0
DIRECTIONPUSH = 1
end
fun refspec_src_matches = git_refspec_src_matches(refspec : X_Refspec, refname : LibC::Char*) : LibC::Int
fun refspec_dst_matches = git_refspec_dst_matches(refspec : X_Refspec, refname : LibC::Char*) : LibC::Int
fun refspec_transform = git_refspec_transform(out : Buf*, spec : X_Refspec, name : LibC::Char*) : LibC::Int
fun refspec_rtransform = git_refspec_rtransform(out : Buf*, spec : X_Refspec, name : LibC::Char*) : LibC::Int
CREDTYPEUSERPASSPLAINTEXT = 1
CREDTYPESSHKEY = 2
CREDTYPESSHCUSTOM = 4
CREDTYPEDEFAULT = 8
CREDTYPESSHINTERACTIVE = 16
fun cred_has_username = git_cred_has_username(cred : Cred*) : LibC::Int
struct Cred
credtype : CredtypeT
free : Cred* -> Void
end
enum CredtypeT
CREDTYPEUSERPASSPLAINTEXT = 1
CREDTYPESSHKEY = 2
CREDTYPESSHCUSTOM = 4
CREDTYPEDEFAULT = 8
CREDTYPESSHINTERACTIVE = 16
end
fun cred_userpass_plaintext_new = git_cred_userpass_plaintext_new(out : Cred**, username : LibC::Char*, password : LibC::Char*) : LibC::Int
fun cred_ssh_key_new = git_cred_ssh_key_new(out : Cred**, username : LibC::Char*, publickey : LibC::Char*, privatekey : LibC::Char*, passphrase : LibC::Char*) : LibC::Int
fun cred_ssh_interactive_new = git_cred_ssh_interactive_new(out : Cred**, username : LibC::Char*, prompt_callback : CredSshInteractiveCallback, payload : Void*) : LibC::Int
type Libssh2UserauthKbdintPrompt = Void*
type Libssh2UserauthKbdintResponse = Void*
alias CredSshInteractiveCallback = LibC::Char*, LibC::Int, LibC::Char*, LibC::Int, LibC::Int, Libssh2UserauthKbdintPrompt, Libssh2UserauthKbdintResponse, Void** -> Void
fun cred_ssh_key_from_agent = git_cred_ssh_key_from_agent(out : Cred**, username : LibC::Char*) : LibC::Int
fun cred_ssh_custom_new = git_cred_ssh_custom_new(out : Cred**, username : LibC::Char*, publickey : LibC::Char*, publickey_len : LibC::SizeT, sign_callback : CredSignCallback, payload : Void*) : LibC::Int
type Libssh2Session = Void*
alias CredSignCallback = Libssh2Session, UInt8**, LibC::SizeT*, UInt8*, LibC::SizeT, Void** -> LibC::Int
fun cred_default_new = git_cred_default_new(out : Cred**) : LibC::Int
TRANSPORTFLAGSNONE = 0
TRANSPORTFLAGSNOCHECKCERT = 1
fun transport_init = git_transport_init(opts : Transport*, version : LibC::UInt) : LibC::Int
struct Transport
version : LibC::UInt
set_callbacks : Transport*, TransportMessageCb, TransportMessageCb, Void* -> LibC::Int
connect : Transport*, LibC::Char*, CredAcquireCb, Void*, LibC::Int, LibC::Int -> LibC::Int
ls : RemoteHead***, LibC::SizeT*, Transport* -> LibC::Int
push : Transport*, X_Push -> LibC::Int
negotiate_fetch : Transport*, X_Repository, RemoteHead**, LibC::SizeT -> LibC::Int
download_pack : Transport*, X_Repository, TransferProgress*, TransferProgressCb, Void* -> LibC::Int
is_connected : Transport* -> LibC::Int
read_flags : Transport*, LibC::Int* -> LibC::Int
cancel : Transport* -> Void
close : Transport* -> LibC::Int
free : Transport* -> Void
end
alias TransportMessageCb = LibC::Char*, LibC::Int, Void* -> LibC::Int
alias CredAcquireCb = Cred**, LibC::Char*, LibC::Char*, LibC::UInt, Void* -> LibC::Int
struct RemoteHead
local : LibC::Int
oid : Oid
loid : Oid
name : LibC::Char*
symref_target : LibC::Char*
end
type X_Push = Void*
fun transport_new = git_transport_new(out : Transport**, owner : X_Remote, url : LibC::Char*) : LibC::Int
type X_Remote = Void*
fun transport_register = git_transport_register(prefix : LibC::Char*, priority : LibC::UInt, cb : TransportCb, param : Void*) : LibC::Int
alias TransportCb = Transport**, X_Remote, Void* -> LibC::Int
fun transport_unregister = git_transport_unregister(prefix : LibC::Char*, priority : LibC::UInt) : LibC::Int
fun transport_dummy = git_transport_dummy(out : Transport**, owner : X_Remote, payload : Void*) : LibC::Int
fun transport_local = git_transport_local(out : Transport**, owner : X_Remote, payload : Void*) : LibC::Int
fun transport_smart = git_transport_smart(out : Transport**, owner : X_Remote, payload : Void*) : LibC::Int
SERVICEUPLOADPACKLS = 1
SERVICEUPLOADPACK = 2
SERVICERECEIVEPACKLS = 3
SERVICERECEIVEPACK = 4
fun smart_subtransport_http = git_smart_subtransport_http(out : SmartSubtransport**, owner : Transport*) : LibC::Int
struct SmartSubtransport
action : SmartSubtransportStream**, SmartSubtransport*, LibC::Char*, SmartServiceT -> LibC::Int
close : SmartSubtransport* -> LibC::Int
free : SmartSubtransport* -> Void
end
struct SmartSubtransportStream
subtransport : SmartSubtransport*
read : SmartSubtransportStream*, LibC::Char*, LibC::SizeT, LibC::SizeT* -> LibC::Int
write : SmartSubtransportStream*, LibC::Char*, LibC::SizeT -> LibC::Int
free : SmartSubtransportStream* -> Void
end
enum SmartServiceT
SERVICEUPLOADPACKLS = 1
SERVICEUPLOADPACK = 2
SERVICERECEIVEPACKLS = 3
SERVICERECEIVEPACK = 4
end
fun smart_subtransport_git = git_smart_subtransport_git(out : SmartSubtransport**, owner : Transport*) : LibC::Int
fun smart_subtransport_ssh = git_smart_subtransport_ssh(out : SmartSubtransport**, owner : Transport*) : LibC::Int
fun remote_create = git_remote_create(out : X_Remote*, repo : X_Repository, name : LibC::Char*, url : LibC::Char*) : LibC::Int
fun remote_create_with_fetchspec = git_remote_create_with_fetchspec(out : X_Remote*, repo : X_Repository, name : LibC::Char*, url : LibC::Char*, fetch : LibC::Char*) : LibC::Int
fun remote_create_anonymous = git_remote_create_anonymous(out : X_Remote*, repo : X_Repository, url : LibC::Char*, fetch : LibC::Char*) : LibC::Int
fun remote_load = git_remote_load(out : X_Remote*, repo : X_Repository, name : LibC::Char*) : LibC::Int
fun remote_save = git_remote_save(remote : X_Remote) : LibC::Int
fun remote_dup = git_remote_dup(dest : X_Remote*, source : X_Remote) : LibC::Int
fun remote_owner = git_remote_owner(remote : X_Remote) : X_Repository
fun remote_name = git_remote_name(remote : X_Remote) : LibC::Char*
fun remote_url = git_remote_url(remote : X_Remote) : LibC::Char*
fun remote_pushurl = git_remote_pushurl(remote : X_Remote) : LibC::Char*
fun remote_set_url = git_remote_set_url(remote : X_Remote, url : LibC::Char*) : LibC::Int
fun remote_set_pushurl = git_remote_set_pushurl(remote : X_Remote, url : LibC::Char*) : LibC::Int
fun remote_add_fetch = git_remote_add_fetch(remote : X_Remote, refspec : LibC::Char*) : LibC::Int
fun remote_get_fetch_refspecs = git_remote_get_fetch_refspecs(array : Strarray*, remote : X_Remote) : LibC::Int
fun remote_set_fetch_refspecs = git_remote_set_fetch_refspecs(remote : X_Remote, array : Strarray*) : LibC::Int
fun remote_add_push = git_remote_add_push(remote : X_Remote, refspec : LibC::Char*) : LibC::Int
fun remote_get_push_refspecs = git_remote_get_push_refspecs(array : Strarray*, remote : X_Remote) : LibC::Int
fun remote_set_push_refspecs = git_remote_set_push_refspecs(remote : X_Remote, array : Strarray*) : LibC::Int
fun remote_clear_refspecs = git_remote_clear_refspecs(remote : X_Remote)
fun remote_refspec_count = git_remote_refspec_count(remote : X_Remote) : LibC::SizeT
fun remote_get_refspec = git_remote_get_refspec(remote : X_Remote, n : LibC::SizeT) : X_Refspec
fun remote_connect = git_remote_connect(remote : X_Remote, direction : Direction) : LibC::Int
fun remote_ls = git_remote_ls(out : RemoteHead***, size : LibC::SizeT*, remote : X_Remote) : LibC::Int
fun remote_download = git_remote_download(remote : X_Remote) : LibC::Int
fun remote_connected = git_remote_connected(remote : X_Remote) : LibC::Int
fun remote_stop = git_remote_stop(remote : X_Remote)
fun remote_disconnect = git_remote_disconnect(remote : X_Remote)
fun remote_free = git_remote_free(remote : X_Remote)
fun remote_update_tips = git_remote_update_tips(remote : X_Remote, signature : Signature*, reflog_message : LibC::Char*) : LibC::Int
fun remote_fetch = git_remote_fetch(remote : X_Remote, signature : Signature*, reflog_message : LibC::Char*) : LibC::Int
fun remote_valid_url = git_remote_valid_url(url : LibC::Char*) : LibC::Int
fun remote_supported_url = git_remote_supported_url(url : LibC::Char*) : LibC::Int
fun remote_list = git_remote_list(out : Strarray*, repo : X_Repository) : LibC::Int
fun remote_check_cert = git_remote_check_cert(remote : X_Remote, check : LibC::Int)
fun remote_set_transport = git_remote_set_transport(remote : X_Remote, transport : Transport*) : LibC::Int
fun remote_init_callbacks = git_remote_init_callbacks(opts : RemoteCallbacks*, version : LibC::UInt) : LibC::Int
struct RemoteCallbacks
version : LibC::UInt
sideband_progress : TransportMessageCb
completion : RemoteCompletionType, Void* -> LibC::Int
credentials : CredAcquireCb
transfer_progress : TransferProgressCb
update_tips : LibC::Char*, Oid*, Oid*, Void* -> LibC::Int
payload : Void*
end
enum RemoteCompletionType
REMOTECOMPLETIONDOWNLOAD = 0
REMOTECOMPLETIONINDEXING = 1
REMOTECOMPLETIONERROR = 2
end
fun remote_set_callbacks = git_remote_set_callbacks(remote : X_Remote, callbacks : RemoteCallbacks*) : LibC::Int
fun remote_get_callbacks = git_remote_get_callbacks(remote : X_Remote) : RemoteCallbacks*
fun remote_stats = git_remote_stats(remote : X_Remote) : TransferProgress*
REMOTEDOWNLOADTAGSAUTO = 0
REMOTEDOWNLOADTAGSNONE = 1
REMOTEDOWNLOADTAGSALL = 2
fun remote_autotag = git_remote_autotag(remote : X_Remote) : RemoteAutotagOptionT
enum RemoteAutotagOptionT
REMOTEDOWNLOADTAGSAUTO = 0
REMOTEDOWNLOADTAGSNONE = 1
REMOTEDOWNLOADTAGSALL = 2
end
fun remote_set_autotag = git_remote_set_autotag(remote : X_Remote, value : RemoteAutotagOptionT)
fun remote_rename = git_remote_rename(problems : Strarray*, remote : X_Remote, new_name : LibC::Char*) : LibC::Int
fun remote_update_fetchhead = git_remote_update_fetchhead(remote : X_Remote) : LibC::Int
fun remote_set_update_fetchhead = git_remote_set_update_fetchhead(remote : X_Remote, value : LibC::Int)
fun remote_is_valid_name = git_remote_is_valid_name(remote_name : LibC::Char*) : LibC::Int
fun remote_delete = git_remote_delete(remote : X_Remote) : LibC::Int
fun remote_default_branch = git_remote_default_branch(out : Buf*, remote : X_Remote) : LibC::Int
CLONELOCALAUTO = 0
CLONELOCAL = 1
CLONENOLOCAL = 2
CLONELOCALNOLINKS = 3
fun clone_init_options = git_clone_init_options(opts : CloneOptions*, version : LibC::UInt) : LibC::Int
struct CloneOptions
version : LibC::UInt
checkout_opts : CheckoutOptions
remote_callbacks : RemoteCallbacks
bare : LibC::Int
ignore_cert_errors : LibC::Int
local : CloneLocalT
remote_name : LibC::Char*
checkout_branch : LibC::Char*
signature : Signature*
end
enum CloneLocalT
CLONELOCALAUTO = 0
CLONELOCAL = 1
CLONENOLOCAL = 2
CLONELOCALNOLINKS = 3
end
fun clone = git_clone(out : X_Repository*, url : LibC::Char*, local_path : LibC::Char*, options : CloneOptions*) : LibC::Int
fun clone_into = git_clone_into(repo : X_Repository, remote : X_Remote, co_opts : CheckoutOptions*, branch : LibC::Char*, signature : Signature*) : LibC::Int
fun clone_local_into = git_clone_local_into(repo : X_Repository, remote : X_Remote, co_opts : CheckoutOptions*, branch : LibC::Char*, link : LibC::Int, signature : Signature*) : LibC::Int
fun commit_lookup = git_commit_lookup(commit : X_Commit*, repo : X_Repository, id : Oid*) : LibC::Int
fun commit_lookup_prefix = git_commit_lookup_prefix(commit : X_Commit*, repo : X_Repository, id : Oid*, len : LibC::SizeT) : LibC::Int
fun commit_free = git_commit_free(commit : X_Commit)
fun commit_id = git_commit_id(commit : X_Commit) : Oid*
fun commit_owner = git_commit_owner(commit : X_Commit) : X_Repository
fun commit_message_encoding = git_commit_message_encoding(commit : X_Commit) : LibC::Char*
fun commit_message = git_commit_message(commit : X_Commit) : LibC::Char*
fun commit_message_raw = git_commit_message_raw(commit : X_Commit) : LibC::Char*
fun commit_summary = git_commit_summary(commit : X_Commit) : LibC::Char*
fun commit_time = git_commit_time(commit : X_Commit) : TimeT
fun commit_time_offset = git_commit_time_offset(commit : X_Commit) : LibC::Int
fun commit_committer = git_commit_committer(commit : X_Commit) : Signature*
fun commit_author = git_commit_author(commit : X_Commit) : Signature*
fun commit_raw_header = git_commit_raw_header(commit : X_Commit) : LibC::Char*
fun commit_tree = git_commit_tree(tree_out : X_Tree*, commit : X_Commit) : LibC::Int
fun commit_tree_id = git_commit_tree_id(commit : X_Commit) : Oid*
fun commit_parentcount = git_commit_parentcount(commit : X_Commit) : LibC::UInt
fun commit_parent = git_commit_parent(out : X_Commit*, commit : X_Commit, n : LibC::UInt) : LibC::Int
fun commit_parent_id = git_commit_parent_id(commit : X_Commit, n : LibC::UInt) : Oid*
fun commit_nth_gen_ancestor = git_commit_nth_gen_ancestor(ancestor : X_Commit*, commit : X_Commit, n : LibC::UInt) : LibC::Int
fun commit_create = git_commit_create(id : Oid*, repo : X_Repository, update_ref : LibC::Char*, author : Signature*, committer : Signature*, message_encoding : LibC::Char*, message : LibC::Char*, tree : X_Tree, parent_count : LibC::SizeT, parents : X_Commit*) : LibC::Int
fun commit_create_v = git_commit_create_v(id : Oid*, repo : X_Repository, update_ref : LibC::Char*, author : Signature*, committer : Signature*, message_encoding : LibC::Char*, message : LibC::Char*, tree : X_Tree, parent_count : LibC::SizeT, ...) : LibC::Int
fun commit_amend = git_commit_amend(id : Oid*, commit_to_amend : X_Commit, update_ref : LibC::Char*, author : Signature*, committer : Signature*, message_encoding : LibC::Char*, message : LibC::Char*, tree : X_Tree) : LibC::Int
CONFIGLEVELSYSTEM = 1
CONFIGLEVELXDG = 2
CONFIGLEVELGLOBAL = 3
CONFIGLEVELLOCAL = 4
CONFIGLEVELAPP = 5
CONFIGHIGHESTLEVEL = -1
CVARFALSE = 0
CVARTRUE = 1
CVARINT32 = 2
CVARSTRING = 3
fun config_find_global = git_config_find_global(out : Buf*) : LibC::Int
fun config_find_xdg = git_config_find_xdg(out : Buf*) : LibC::Int
fun config_find_system = git_config_find_system(out : Buf*) : LibC::Int
fun config_open_default = git_config_open_default(out : X_Config*) : LibC::Int
fun config_new = git_config_new(out : X_Config*) : LibC::Int
fun config_add_file_ondisk = git_config_add_file_ondisk(cfg : X_Config, path : LibC::Char*, level : ConfigLevelT, force : LibC::Int) : LibC::Int
enum ConfigLevelT
CONFIGLEVELSYSTEM = 1
CONFIGLEVELXDG = 2
CONFIGLEVELGLOBAL = 3
CONFIGLEVELLOCAL = 4
CONFIGLEVELAPP = 5
CONFIGHIGHESTLEVEL = -1
end
fun config_open_ondisk = git_config_open_ondisk(out : X_Config*, path : LibC::Char*) : LibC::Int
fun config_open_level = git_config_open_level(out : X_Config*, parent : X_Config, level : ConfigLevelT) : LibC::Int
fun config_open_global = git_config_open_global(out : X_Config*, config : X_Config) : LibC::Int
fun config_snapshot = git_config_snapshot(out : X_Config*, config : X_Config) : LibC::Int
fun config_refresh = git_config_refresh(cfg : X_Config) : LibC::Int
fun config_free = git_config_free(cfg : X_Config)
fun config_get_entry = git_config_get_entry(out : ConfigEntry**, cfg : X_Config, name : LibC::Char*) : LibC::Int
struct ConfigEntry
name : LibC::Char*
value : LibC::Char*
level : ConfigLevelT
end
fun config_get_int32 = git_config_get_int32(out : Int32T*, cfg : X_Config, name : LibC::Char*) : LibC::Int
alias Int32T = LibC::Int
fun config_get_int64 = git_config_get_int64(out : Int64T*, cfg : X_Config, name : LibC::Char*) : LibC::Int
fun config_get_bool = git_config_get_bool(out : LibC::Int*, cfg : X_Config, name : LibC::Char*) : LibC::Int
fun config_get_string = git_config_get_string(out : LibC::Char**, cfg : X_Config, name : LibC::Char*) : LibC::Int
fun config_get_multivar_foreach = git_config_get_multivar_foreach(cfg : X_Config, name : LibC::Char*, regexp : LibC::Char*, callback : ConfigForeachCb, payload : Void*) : LibC::Int
alias ConfigForeachCb = ConfigEntry*, Void* -> LibC::Int
fun config_multivar_iterator_new = git_config_multivar_iterator_new(out : X_ConfigIterator*, cfg : X_Config, name : LibC::Char*, regexp : LibC::Char*) : LibC::Int
type X_ConfigIterator = Void*
fun config_next = git_config_next(entry : ConfigEntry**, iter : X_ConfigIterator) : LibC::Int
fun config_iterator_free = git_config_iterator_free(iter : X_ConfigIterator)
fun config_set_int32 = git_config_set_int32(cfg : X_Config, name : LibC::Char*, value : Int32T) : LibC::Int
fun config_set_int64 = git_config_set_int64(cfg : X_Config, name : LibC::Char*, value : Int64T) : LibC::Int
fun config_set_bool = git_config_set_bool(cfg : X_Config, name : LibC::Char*, value : LibC::Int) : LibC::Int
fun config_set_string = git_config_set_string(cfg : X_Config, name : LibC::Char*, value : LibC::Char*) : LibC::Int
fun config_set_multivar = git_config_set_multivar(cfg : X_Config, name : LibC::Char*, regexp : LibC::Char*, value : LibC::Char*) : LibC::Int
fun config_delete_entry = git_config_delete_entry(cfg : X_Config, name : LibC::Char*) : LibC::Int
fun config_delete_multivar = git_config_delete_multivar(cfg : X_Config, name : LibC::Char*, regexp : LibC::Char*) : LibC::Int
fun config_foreach = git_config_foreach(cfg : X_Config, callback : ConfigForeachCb, payload : Void*) : LibC::Int
fun config_iterator_new = git_config_iterator_new(out : X_ConfigIterator*, cfg : X_Config) : LibC::Int
fun config_iterator_glob_new = git_config_iterator_glob_new(out : X_ConfigIterator*, cfg : X_Config, regexp : LibC::Char*) : LibC::Int
fun config_foreach_match = git_config_foreach_match(cfg : X_Config, regexp : LibC::Char*, callback : ConfigForeachCb, payload : Void*) : LibC::Int
fun config_get_mapped = git_config_get_mapped(out : LibC::Int*, cfg : X_Config, name : LibC::Char*, maps : CvarMap*, map_n : LibC::SizeT) : LibC::Int
struct CvarMap
cvar_type : CvarT
str_match : LibC::Char*
map_value : LibC::Int
end
enum CvarT
CVARFALSE = 0
CVARTRUE = 1
CVARINT32 = 2
CVARSTRING = 3
end
fun config_lookup_map_value = git_config_lookup_map_value(out : LibC::Int*, maps : CvarMap*, map_n : LibC::SizeT, value : LibC::Char*) : LibC::Int
fun config_parse_bool = git_config_parse_bool(out : LibC::Int*, value : LibC::Char*) : LibC::Int
fun config_parse_int32 = git_config_parse_int32(out : Int32T*, value : LibC::Char*) : LibC::Int
fun config_parse_int64 = git_config_parse_int64(out : Int64T*, value : LibC::Char*) : LibC::Int
fun config_backend_foreach_match = git_config_backend_foreach_match(backend : X_ConfigBackend, regexp : LibC::Char*, callback : ConfigForeachCb, payload : Void*) : LibC::Int
type X_ConfigBackend = Void*
OK = 0
ERROR = -1
ENOTFOUND = -3
EEXISTS = -4
EAMBIGUOUS = -5
EBUFS = -6
EUSER = -7
EBAREREPO = -8
EUNBORNBRANCH = -9
EUNMERGED = -10
ENONFASTFORWARD = -11
EINVALIDSPEC = -12
EMERGECONFLICT = -13
ELOCKED = -14
EMODIFIED = -15
PASSTHROUGH = -30
ITEROVER = -31
FILTERTOWORKTREE = 0
FILTERSMUDGE = 0
FILTERTOODB = 1
FILTERCLEAN = 1
FILTEROPTDEFAULT = 0
FILTEROPTALLOWUNSAFE = 1
fun filter_list_load = git_filter_list_load(filters : X_FilterList*, repo : X_Repository, blob : X_Blob, path : LibC::Char*, mode : FilterModeT, options : Uint32T) : LibC::Int
type X_FilterList = Void*
enum FilterModeT
FILTERTOWORKTREE = 0
FILTERSMUDGE = 0
FILTERTOODB = 1
FILTERCLEAN = 1
end
fun filter_list_apply_to_data = git_filter_list_apply_to_data(out : Buf*, filters : X_FilterList, in : Buf*) : LibC::Int
fun filter_list_apply_to_file = git_filter_list_apply_to_file(out : Buf*, filters : X_FilterList, repo : X_Repository, path : LibC::Char*) : LibC::Int
fun filter_list_apply_to_blob = git_filter_list_apply_to_blob(out : Buf*, filters : X_FilterList, blob : X_Blob) : LibC::Int
fun filter_list_free = git_filter_list_free(filters : X_FilterList)
fun graph_ahead_behind = git_graph_ahead_behind(ahead : LibC::SizeT*, behind : LibC::SizeT*, repo : X_Repository, local : Oid*, upstream : Oid*) : LibC::Int
fun graph_descendant_of = git_graph_descendant_of(repo : X_Repository, commit : Oid*, ancestor : Oid*) : LibC::Int
fun ignore_add_rule = git_ignore_add_rule(repo : X_Repository, rules : LibC::Char*) : LibC::Int
fun ignore_clear_internal_rules = git_ignore_clear_internal_rules(repo : X_Repository) : LibC::Int
fun ignore_path_is_ignored = git_ignore_path_is_ignored(ignored : LibC::Int*, repo : X_Repository, path : LibC::Char*) : LibC::Int
fun message_prettify = git_message_prettify(out : Buf*, message : LibC::Char*, strip_comments : LibC::Int, comment_char : LibC::Char) : LibC::Int
fun note_iterator_new = git_note_iterator_new(out : X_NoteIterator*, repo : X_Repository, notes_ref : LibC::Char*) : LibC::Int
type X_NoteIterator = Void*
fun note_iterator_free = git_note_iterator_free(it : X_NoteIterator)
fun note_next = git_note_next(note_id : Oid*, annotated_id : Oid*, it : X_NoteIterator) : LibC::Int
fun note_read = git_note_read(out : X_Note*, repo : X_Repository, notes_ref : LibC::Char*, oid : Oid*) : LibC::Int
type X_Note = Void*
fun note_message = git_note_message(note : X_Note) : LibC::Char*
fun note_id = git_note_id(note : X_Note) : Oid*
fun note_create = git_note_create(out : Oid*, repo : X_Repository, author : Signature*, committer : Signature*, notes_ref : LibC::Char*, oid : Oid*, note : LibC::Char*, force : LibC::Int) : LibC::Int
fun note_remove = git_note_remove(repo : X_Repository, notes_ref : LibC::Char*, author : Signature*, committer : Signature*, oid : Oid*) : LibC::Int
fun note_free = git_note_free(note : X_Note)
fun note_default_ref = git_note_default_ref(out : LibC::Char**, repo : X_Repository) : LibC::Int
fun note_foreach = git_note_foreach(repo : X_Repository, notes_ref : LibC::Char*, note_cb : NoteForeachCb, payload : Void*) : LibC::Int
alias NoteForeachCb = Oid*, Oid*, Void* -> LibC::Int
fun odb_new = git_odb_new(out : X_Odb*) : LibC::Int
fun odb_open = git_odb_open(out : X_Odb*, objects_dir : LibC::Char*) : LibC::Int
fun odb_add_disk_alternate = git_odb_add_disk_alternate(odb : X_Odb, path : LibC::Char*) : LibC::Int
fun odb_free = git_odb_free(db : X_Odb)
fun odb_read = git_odb_read(out : X_OdbObject*, db : X_Odb, id : Oid*) : LibC::Int
type X_OdbObject = Void*
fun odb_read_prefix = git_odb_read_prefix(out : X_OdbObject*, db : X_Odb, short_id : Oid*, len : LibC::SizeT) : LibC::Int
fun odb_read_header = git_odb_read_header(len_out : LibC::SizeT*, type_out : Otype*, db : X_Odb, id : Oid*) : LibC::Int
fun odb_exists = git_odb_exists(db : X_Odb, id : Oid*) : LibC::Int
fun odb_exists_prefix = git_odb_exists_prefix(out : Oid*, db : X_Odb, short_id : Oid*, len : LibC::SizeT) : LibC::Int
fun odb_refresh = git_odb_refresh(db : Odb*) : LibC::Int
alias Odb = Void
fun odb_foreach = git_odb_foreach(db : X_Odb, cb : OdbForeachCb, payload : Void*) : LibC::Int
alias OdbForeachCb = Oid*, Void* -> LibC::Int
fun odb_write = git_odb_write(out : Oid*, odb : X_Odb, data : Void*, len : LibC::SizeT, type : Otype) : LibC::Int
fun odb_open_wstream = git_odb_open_wstream(out : X_OdbStream*, db : X_Odb, size : LibC::SizeT, type : Otype) : LibC::Int
type X_OdbStream = Void*
fun odb_stream_write = git_odb_stream_write(stream : X_OdbStream, buffer : LibC::Char*, len : LibC::SizeT) : LibC::Int
fun odb_stream_finalize_write = git_odb_stream_finalize_write(out : Oid*, stream : X_OdbStream) : LibC::Int
fun odb_stream_read = git_odb_stream_read(stream : X_OdbStream, buffer : LibC::Char*, len : LibC::SizeT) : LibC::Int
fun odb_stream_free = git_odb_stream_free(stream : X_OdbStream)
fun odb_open_rstream = git_odb_open_rstream(out : X_OdbStream*, db : X_Odb, oid : Oid*) : LibC::Int
fun odb_write_pack = git_odb_write_pack(out : X_OdbWritepack*, db : X_Odb, progress_cb : TransferProgressCb, progress_payload : Void*) : LibC::Int
type X_OdbWritepack = Void*
fun odb_hash = git_odb_hash(out : Oid*, data : Void*, len : LibC::SizeT, type : Otype) : LibC::Int
fun odb_hashfile = git_odb_hashfile(out : Oid*, path : LibC::Char*, type : Otype) : LibC::Int
fun odb_object_dup = git_odb_object_dup(dest : X_OdbObject*, source : X_OdbObject) : LibC::Int
fun odb_object_free = git_odb_object_free(object : X_OdbObject)
fun odb_object_id = git_odb_object_id(object : X_OdbObject) : Oid*
fun odb_object_data = git_odb_object_data(object : X_OdbObject) : Void*
fun odb_object_size = git_odb_object_size(object : X_OdbObject) : LibC::SizeT
fun odb_object_type = git_odb_object_type(object : X_OdbObject) : Otype
fun odb_add_backend = git_odb_add_backend(odb : X_Odb, backend : X_OdbBackend, priority : LibC::Int) : LibC::Int
type X_OdbBackend = Void*
fun odb_add_alternate = git_odb_add_alternate(odb : X_Odb, backend : X_OdbBackend, priority : LibC::Int) : LibC::Int
fun odb_num_backends = git_odb_num_backends(odb : X_Odb) : LibC::SizeT
fun odb_get_backend = git_odb_get_backend(out : X_OdbBackend*, odb : X_Odb, pos : LibC::SizeT) : LibC::Int
PACKBUILDERADDINGOBJECTS = 0
PACKBUILDERDELTAFICATION = 1
fun packbuilder_new = git_packbuilder_new(out : X_Packbuilder*, repo : X_Repository) : LibC::Int
type X_Packbuilder = Void*
fun packbuilder_set_threads = git_packbuilder_set_threads(pb : X_Packbuilder, n : LibC::UInt) : LibC::UInt
fun packbuilder_insert = git_packbuilder_insert(pb : X_Packbuilder, id : Oid*, name : LibC::Char*) : LibC::Int
fun packbuilder_insert_tree = git_packbuilder_insert_tree(pb : X_Packbuilder, id : Oid*) : LibC::Int
fun packbuilder_insert_commit = git_packbuilder_insert_commit(pb : X_Packbuilder, id : Oid*) : LibC::Int
fun packbuilder_write_buf = git_packbuilder_write_buf(buf : Buf*, pb : X_Packbuilder) : LibC::Int
fun packbuilder_write = git_packbuilder_write(pb : X_Packbuilder, path : LibC::Char*, mode : LibC::UInt, progress_cb : TransferProgressCb, progress_cb_payload : Void*) : LibC::Int
fun packbuilder_hash = git_packbuilder_hash(pb : X_Packbuilder) : Oid*
fun packbuilder_foreach = git_packbuilder_foreach(pb : X_Packbuilder, cb : PackbuilderForeachCb, payload : Void*) : LibC::Int
alias PackbuilderForeachCb = Void*, LibC::SizeT, Void* -> LibC::Int
fun packbuilder_object_count = git_packbuilder_object_count(pb : X_Packbuilder) : Uint32T
fun packbuilder_written = git_packbuilder_written(pb : X_Packbuilder) : Uint32T
fun packbuilder_set_callbacks = git_packbuilder_set_callbacks(pb : X_Packbuilder, progress_cb : PackbuilderProgress, progress_cb_payload : Void*) : LibC::Int
alias PackbuilderProgress = LibC::Int, LibC::UInt, LibC::UInt, Void* -> LibC::Int
fun packbuilder_free = git_packbuilder_free(pb : X_Packbuilder)
fun patch_from_diff = git_patch_from_diff(out : X_Patch*, diff : X_Diff, idx : LibC::SizeT) : LibC::Int
type X_Patch = Void*
fun patch_from_blobs = git_patch_from_blobs(out : X_Patch*, old_blob : X_Blob, old_as_path : LibC::Char*, new_blob : X_Blob, new_as_path : LibC::Char*, opts : DiffOptions*) : LibC::Int
fun patch_from_blob_and_buffer = git_patch_from_blob_and_buffer(out : X_Patch*, old_blob : X_Blob, old_as_path : LibC::Char*, buffer : LibC::Char*, buffer_len : LibC::SizeT, buffer_as_path : LibC::Char*, opts : DiffOptions*) : LibC::Int
fun patch_from_buffers = git_patch_from_buffers(out : X_Patch*, old_buffer : Void*, old_len : LibC::SizeT, old_as_path : LibC::Char*, new_buffer : LibC::Char*, new_len : LibC::SizeT, new_as_path : LibC::Char*, opts : DiffOptions*) : LibC::Int
fun patch_free = git_patch_free(patch : X_Patch)
fun patch_get_delta = git_patch_get_delta(patch : X_Patch) : DiffDelta*
fun patch_num_hunks = git_patch_num_hunks(patch : X_Patch) : LibC::SizeT
fun patch_line_stats = git_patch_line_stats(total_context : LibC::SizeT*, total_additions : LibC::SizeT*, total_deletions : LibC::SizeT*, patch : X_Patch) : LibC::Int
fun patch_get_hunk = git_patch_get_hunk(out : DiffHunk**, lines_in_hunk : LibC::SizeT*, patch : X_Patch, hunk_idx : LibC::SizeT) : LibC::Int
fun patch_num_lines_in_hunk = git_patch_num_lines_in_hunk(patch : X_Patch, hunk_idx : LibC::SizeT) : LibC::Int
fun patch_get_line_in_hunk = git_patch_get_line_in_hunk(out : DiffLine**, patch : X_Patch, hunk_idx : LibC::SizeT, line_of_hunk : LibC::SizeT) : LibC::Int
fun patch_size = git_patch_size(patch : X_Patch, include_context : LibC::Int, include_hunk_headers : LibC::Int, include_file_headers : LibC::Int) : LibC::SizeT
fun patch_print = git_patch_print(patch : X_Patch, print_cb : DiffLineCb, payload : Void*) : LibC::Int
fun patch_to_buf = git_patch_to_buf(out : Buf*, patch : X_Patch) : LibC::Int
PATHSPECDEFAULT = 0
PATHSPECIGNORECASE = 1
PATHSPECUSECASE = 2
PATHSPECNOGLOB = 4
PATHSPECNOMATCHERROR = 8
PATHSPECFINDFAILURES = 16
PATHSPECFAILURESONLY = 32
fun pathspec_new = git_pathspec_new(out : X_Pathspec*, pathspec : Strarray*) : LibC::Int
type X_Pathspec = Void*
fun pathspec_free = git_pathspec_free(ps : X_Pathspec)
fun pathspec_matches_path = git_pathspec_matches_path(ps : X_Pathspec, flags : Uint32T, path : LibC::Char*) : LibC::Int
fun pathspec_match_workdir = git_pathspec_match_workdir(out : X_PathspecMatchList*, repo : X_Repository, flags : Uint32T, ps : X_Pathspec) : LibC::Int
type X_PathspecMatchList = Void*
fun pathspec_match_index = git_pathspec_match_index(out : X_PathspecMatchList*, index : X_Index, flags : Uint32T, ps : X_Pathspec) : LibC::Int
fun pathspec_match_tree = git_pathspec_match_tree(out : X_PathspecMatchList*, tree : X_Tree, flags : Uint32T, ps : X_Pathspec) : LibC::Int
fun pathspec_match_diff = git_pathspec_match_diff(out : X_PathspecMatchList*, diff : X_Diff, flags : Uint32T, ps : X_Pathspec) : LibC::Int
fun pathspec_match_list_free = git_pathspec_match_list_free(m : X_PathspecMatchList)
fun pathspec_match_list_entrycount = git_pathspec_match_list_entrycount(m : X_PathspecMatchList) : LibC::SizeT
fun pathspec_match_list_entry = git_pathspec_match_list_entry(m : X_PathspecMatchList, pos : LibC::SizeT) : LibC::Char*
fun pathspec_match_list_diff_entry = git_pathspec_match_list_diff_entry(m : X_PathspecMatchList, pos : LibC::SizeT) : DiffDelta*
fun pathspec_match_list_failed_entrycount = git_pathspec_match_list_failed_entrycount(m : X_PathspecMatchList) : LibC::SizeT
fun pathspec_match_list_failed_entry = git_pathspec_match_list_failed_entry(m : X_PathspecMatchList, pos : LibC::SizeT) : LibC::Char*
fun push_init_options = git_push_init_options(opts : PushOptions*, version : LibC::UInt) : LibC::Int
struct PushOptions
version : LibC::UInt
pb_parallelism : LibC::UInt
end
fun push_new = git_push_new(out : X_Push*, remote : X_Remote) : LibC::Int
fun push_set_options = git_push_set_options(push : X_Push, opts : PushOptions*) : LibC::Int
fun push_set_callbacks = git_push_set_callbacks(push : X_Push, pack_progress_cb : PackbuilderProgress, pack_progress_cb_payload : Void*, transfer_progress_cb : PushTransferProgress, transfer_progress_cb_payload : Void*) : LibC::Int
alias PushTransferProgress = LibC::UInt, LibC::UInt, LibC::SizeT, Void* -> LibC::Int
fun push_add_refspec = git_push_add_refspec(push : X_Push, refspec : LibC::Char*) : LibC::Int
fun push_update_tips = git_push_update_tips(push : X_Push, signature : Signature*, reflog_message : LibC::Char*) : LibC::Int
fun push_finish = git_push_finish(push : X_Push) : LibC::Int
fun push_unpack_ok = git_push_unpack_ok(push : X_Push) : LibC::Int
fun push_status_foreach = git_push_status_foreach(push : X_Push, cb : LibC::Char*, LibC::Char*, Void* -> LibC::Int, data : Void*) : LibC::Int
fun push_free = git_push_free(push : X_Push)
fun refdb_new = git_refdb_new(out : X_Refdb*, repo : X_Repository) : LibC::Int
fun refdb_open = git_refdb_open(out : X_Refdb*, repo : X_Repository) : LibC::Int
fun refdb_compress = git_refdb_compress(refdb : X_Refdb) : LibC::Int
fun refdb_free = git_refdb_free(refdb : X_Refdb)
fun reflog_read = git_reflog_read(out : X_Reflog*, repo : X_Repository, name : LibC::Char*) : LibC::Int
type X_Reflog = Void*
fun reflog_write = git_reflog_write(reflog : X_Reflog) : LibC::Int
fun reflog_append = git_reflog_append(reflog : X_Reflog, id : Oid*, committer : Signature*, msg : LibC::Char*) : LibC::Int
fun reflog_rename = git_reflog_rename(repo : X_Repository, old_name : LibC::Char*, name : LibC::Char*) : LibC::Int
fun reflog_delete = git_reflog_delete(repo : X_Repository, name : LibC::Char*) : LibC::Int
fun reflog_entrycount = git_reflog_entrycount(reflog : X_Reflog) : LibC::SizeT
fun reflog_entry_byindex = git_reflog_entry_byindex(reflog : X_Reflog, idx : LibC::SizeT) : X_ReflogEntry
type X_ReflogEntry = Void*
fun reflog_drop = git_reflog_drop(reflog : X_Reflog, idx : LibC::SizeT, rewrite_previous_entry : LibC::Int) : LibC::Int
fun reflog_entry_id_old = git_reflog_entry_id_old(entry : X_ReflogEntry) : Oid*
fun reflog_entry_id_new = git_reflog_entry_id_new(entry : X_ReflogEntry) : Oid*
fun reflog_entry_committer = git_reflog_entry_committer(entry : X_ReflogEntry) : Signature*
fun reflog_entry_message = git_reflog_entry_message(entry : X_ReflogEntry) : LibC::Char*
fun reflog_free = git_reflog_free(reflog : X_Reflog)
RESETSOFT = 1
RESETMIXED = 2
RESETHARD = 3
fun reset = git_reset(repo : X_Repository, target : X_Object, reset_type : ResetT, signature : Signature*, log_message : LibC::Char*) : LibC::Int
enum ResetT
RESETSOFT = 1
RESETMIXED = 2
RESETHARD = 3
end
fun reset_default = git_reset_default(repo : X_Repository, target : X_Object, pathspecs : Strarray*) : LibC::Int
fun revert_init_options = git_revert_init_options(opts : RevertOptions*, version : LibC::UInt) : LibC::Int
struct RevertOptions
version : LibC::UInt
mainline : LibC::UInt
merge_opts : MergeOptions
checkout_opts : CheckoutOptions
end
fun revert_commit = git_revert_commit(out : X_Index*, repo : X_Repository, revert_commit : X_Commit, our_commit : X_Commit, mainline : LibC::UInt, merge_options : MergeOptions*) : LibC::Int
fun revert = git_revert(repo : X_Repository, commit : X_Commit, given_opts : RevertOptions*) : LibC::Int
fun revparse_single = git_revparse_single(out : X_Object*, repo : X_Repository, spec : LibC::Char*) : LibC::Int
fun revparse_ext = git_revparse_ext(object_out : X_Object*, reference_out : X_Reference*, repo : X_Repository, spec : LibC::Char*) : LibC::Int
REVPARSESINGLE = 1
REVPARSERANGE = 2
REVPARSEMERGEBASE = 4
fun revparse = git_revparse(revspec : Revspec*, repo : X_Repository, spec : LibC::Char*) : LibC::Int
struct Revspec
from : X_Object
to : X_Object
flags : LibC::UInt
end
fun revwalk_new = git_revwalk_new(out : X_Revwalk*, repo : X_Repository) : LibC::Int
type X_Revwalk = Void*
fun revwalk_reset = git_revwalk_reset(walker : X_Revwalk)
fun revwalk_push = git_revwalk_push(walk : X_Revwalk, id : Oid*) : LibC::Int
fun revwalk_push_glob = git_revwalk_push_glob(walk : X_Revwalk, glob : LibC::Char*) : LibC::Int
fun revwalk_push_head = git_revwalk_push_head(walk : X_Revwalk) : LibC::Int
fun revwalk_hide = git_revwalk_hide(walk : X_Revwalk, commit_id : Oid*) : LibC::Int
fun revwalk_hide_glob = git_revwalk_hide_glob(walk : X_Revwalk, glob : LibC::Char*) : LibC::Int
fun revwalk_hide_head = git_revwalk_hide_head(walk : X_Revwalk) : LibC::Int
fun revwalk_push_ref = git_revwalk_push_ref(walk : X_Revwalk, refname : LibC::Char*) : LibC::Int
fun revwalk_hide_ref = git_revwalk_hide_ref(walk : X_Revwalk, refname : LibC::Char*) : LibC::Int
fun revwalk_next = git_revwalk_next(out : Oid*, walk : X_Revwalk) : LibC::Int
fun revwalk_sorting = git_revwalk_sorting(walk : X_Revwalk, sort_mode : LibC::UInt)
fun revwalk_push_range = git_revwalk_push_range(walk : X_Revwalk, range : LibC::Char*) : LibC::Int
fun revwalk_simplify_first_parent = git_revwalk_simplify_first_parent(walk : X_Revwalk)
fun revwalk_free = git_revwalk_free(walk : X_Revwalk)
fun revwalk_repository = git_revwalk_repository(walk : X_Revwalk) : X_Repository
fun revwalk_add_hide_cb = git_revwalk_add_hide_cb(walk : X_Revwalk, hide_cb : RevwalkHideCb, payload : Void*) : LibC::Int
alias RevwalkHideCb = Oid*, Void* -> LibC::Int
fun signature_new = git_signature_new(out : Signature**, name : LibC::Char*, email : LibC::Char*, time : TimeT, offset : LibC::Int) : LibC::Int
fun signature_now = git_signature_now(out : Signature**, name : LibC::Char*, email : LibC::Char*) : LibC::Int
fun signature_default = git_signature_default(out : Signature**, repo : X_Repository) : LibC::Int
fun signature_dup = git_signature_dup(dest : Signature**, sig : Signature*) : LibC::Int
fun signature_free = git_signature_free(sig : Signature*)
STASHDEFAULT = 0
STASHKEEPINDEX = 1
STASHINCLUDEUNTRACKED = 2
STASHINCLUDEIGNORED = 4
fun stash_save = git_stash_save(out : Oid*, repo : X_Repository, stasher : Signature*, message : LibC::Char*, flags : LibC::UInt) : LibC::Int
fun stash_foreach = git_stash_foreach(repo : X_Repository, callback : StashCb, payload : Void*) : LibC::Int
alias StashCb = LibC::SizeT, LibC::Char*, Oid*, Void* -> LibC::Int
fun stash_drop = git_stash_drop(repo : X_Repository, index : LibC::SizeT) : LibC::Int
STATUSCURRENT = 0
STATUSINDEXNEW = 1
STATUSINDEXMODIFIED = 2
STATUSINDEXDELETED = 4
STATUSINDEXRENAMED = 8
STATUSINDEXTYPECHANGE = 16
STATUSWTNEW = 128
STATUSWTMODIFIED = 256
STATUSWTDELETED = 512
STATUSWTTYPECHANGE = 1024
STATUSWTRENAMED = 2048
STATUSIGNORED = 16384
STATUSSHOWINDEXANDWORKDIR = 0
STATUSSHOWINDEXONLY = 1
STATUSSHOWWORKDIRONLY = 2
STATUSOPTINCLUDEUNTRACKED = 1
STATUSOPTINCLUDEIGNORED = 2
STATUSOPTINCLUDEUNMODIFIED = 4
STATUSOPTEXCLUDESUBMODULES = 8
STATUSOPTRECURSEUNTRACKEDDIRS = 16
STATUSOPTDISABLEPATHSPECMATCH = 32
STATUSOPTRECURSEIGNOREDDIRS = 64
STATUSOPTRENAMESHEADTOINDEX = 128
STATUSOPTRENAMESINDEXTOWORKDIR = 256
STATUSOPTSORTCASESENSITIVELY = 512
STATUSOPTSORTCASEINSENSITIVELY = 1024
STATUSOPTRENAMESFROMREWRITES = 2048
STATUSOPTNOREFRESH = 4096
STATUSOPTUPDATEINDEX = 8192
fun status_init_options = git_status_init_options(opts : StatusOptions*, version : LibC::UInt) : LibC::Int
struct StatusOptions
version : LibC::UInt
show : StatusShowT
flags : LibC::UInt
pathspec : Strarray
end
enum StatusShowT
STATUSSHOWINDEXANDWORKDIR = 0
STATUSSHOWINDEXONLY = 1
STATUSSHOWWORKDIRONLY = 2
end
fun status_foreach = git_status_foreach(repo : X_Repository, callback : StatusCb, payload : Void*) : LibC::Int
alias StatusCb = LibC::Char*, LibC::UInt, Void* -> LibC::Int
fun status_foreach_ext = git_status_foreach_ext(repo : X_Repository, opts : StatusOptions*, callback : StatusCb, payload : Void*) : LibC::Int
fun status_file = git_status_file(status_flags : LibC::UInt*, repo : X_Repository, path : LibC::Char*) : LibC::Int
fun status_list_new = git_status_list_new(out : X_StatusList*, repo : X_Repository, opts : StatusOptions*) : LibC::Int
type X_StatusList = Void*
fun status_list_entrycount = git_status_list_entrycount(statuslist : X_StatusList) : LibC::SizeT
fun status_byindex = git_status_byindex(statuslist : X_StatusList, idx : LibC::SizeT) : StatusEntry*
struct StatusEntry
status : StatusT
head_to_index : DiffDelta*
index_to_workdir : DiffDelta*
end
enum StatusT
STATUSCURRENT = 0
STATUSINDEXNEW = 1
STATUSINDEXMODIFIED = 2
STATUSINDEXDELETED = 4
STATUSINDEXRENAMED = 8
STATUSINDEXTYPECHANGE = 16
STATUSWTNEW = 128
STATUSWTMODIFIED = 256
STATUSWTDELETED = 512
STATUSWTTYPECHANGE = 1024
STATUSWTRENAMED = 2048
STATUSIGNORED = 16384
end
fun status_list_free = git_status_list_free(statuslist : X_StatusList)
fun status_should_ignore = git_status_should_ignore(ignored : LibC::Int*, repo : X_Repository, path : LibC::Char*) : LibC::Int
SUBMODULESTATUSINHEAD = 1
SUBMODULESTATUSININDEX = 2
SUBMODULESTATUSINCONFIG = 4
SUBMODULESTATUSINWD = 8
SUBMODULESTATUSINDEXADDED = 16
SUBMODULESTATUSINDEXDELETED = 32
SUBMODULESTATUSINDEXMODIFIED = 64
SUBMODULESTATUSWDUNINITIALIZED = 128
SUBMODULESTATUSWDADDED = 256
SUBMODULESTATUSWDDELETED = 512
SUBMODULESTATUSWDMODIFIED = 1024
SUBMODULESTATUSWDINDEXMODIFIED = 2048
SUBMODULESTATUSWDWDMODIFIED = 4096
SUBMODULESTATUSWDUNTRACKED = 8192
fun submodule_lookup = git_submodule_lookup(out : X_Submodule*, repo : X_Repository, name : LibC::Char*) : LibC::Int
type X_Submodule = Void*
fun submodule_free = git_submodule_free(submodule : X_Submodule)
fun submodule_foreach = git_submodule_foreach(repo : X_Repository, callback : X_Submodule, LibC::Char*, Void* -> LibC::Int, payload : Void*) : LibC::Int
fun submodule_add_setup = git_submodule_add_setup(out : X_Submodule*, repo : X_Repository, url : LibC::Char*, path : LibC::Char*, use_gitlink : LibC::Int) : LibC::Int
fun submodule_add_finalize = git_submodule_add_finalize(submodule : X_Submodule) : LibC::Int
fun submodule_add_to_index = git_submodule_add_to_index(submodule : X_Submodule, write_index : LibC::Int) : LibC::Int
fun submodule_save = git_submodule_save(submodule : X_Submodule) : LibC::Int
fun submodule_owner = git_submodule_owner(submodule : X_Submodule) : X_Repository
fun submodule_name = git_submodule_name(submodule : X_Submodule) : LibC::Char*
fun submodule_path = git_submodule_path(submodule : X_Submodule) : LibC::Char*
fun submodule_url = git_submodule_url(submodule : X_Submodule) : LibC::Char*
fun submodule_resolve_url = git_submodule_resolve_url(out : Buf*, repo : X_Repository, url : LibC::Char*) : LibC::Int
fun submodule_branch = git_submodule_branch(submodule : X_Submodule) : LibC::Char*
fun submodule_set_url = git_submodule_set_url(submodule : X_Submodule, url : LibC::Char*) : LibC::Int
fun submodule_index_id = git_submodule_index_id(submodule : X_Submodule) : Oid*
fun submodule_head_id = git_submodule_head_id(submodule : X_Submodule) : Oid*
fun submodule_wd_id = git_submodule_wd_id(submodule : X_Submodule) : Oid*
fun submodule_ignore = git_submodule_ignore(submodule : X_Submodule) : SubmoduleIgnoreT
fun submodule_set_ignore = git_submodule_set_ignore(submodule : X_Submodule, ignore : SubmoduleIgnoreT) : SubmoduleIgnoreT
fun submodule_update = git_submodule_update(submodule : X_Submodule) : SubmoduleUpdateT
enum SubmoduleUpdateT
SUBMODULEUPDATERESET = -1
SUBMODULEUPDATECHECKOUT = 1
SUBMODULEUPDATEREBASE = 2
SUBMODULEUPDATEMERGE = 3
SUBMODULEUPDATENONE = 4
SUBMODULEUPDATEDEFAULT = 0
end
fun submodule_set_update = git_submodule_set_update(submodule : X_Submodule, update : SubmoduleUpdateT) : SubmoduleUpdateT
fun submodule_fetch_recurse_submodules = git_submodule_fetch_recurse_submodules(submodule : X_Submodule) : SubmoduleRecurseT
enum SubmoduleRecurseT
SUBMODULERECURSERESET = -1
SUBMODULERECURSENO = 0
SUBMODULERECURSEYES = 1
SUBMODULERECURSEONDEMAND = 2
end
fun submodule_set_fetch_recurse_submodules = git_submodule_set_fetch_recurse_submodules(submodule : X_Submodule, fetch_recurse_submodules : SubmoduleRecurseT) : SubmoduleRecurseT
fun submodule_init = git_submodule_init(submodule : X_Submodule, overwrite : LibC::Int) : LibC::Int
fun submodule_sync = git_submodule_sync(submodule : X_Submodule) : LibC::Int
fun submodule_open = git_submodule_open(repo : X_Repository*, submodule : X_Submodule) : LibC::Int
fun submodule_reload = git_submodule_reload(submodule : X_Submodule, force : LibC::Int) : LibC::Int
fun submodule_reload_all = git_submodule_reload_all(repo : X_Repository, force : LibC::Int) : LibC::Int
fun submodule_status = git_submodule_status(status : LibC::UInt*, submodule : X_Submodule) : LibC::Int
fun submodule_location = git_submodule_location(location_status : LibC::UInt*, submodule : X_Submodule) : LibC::Int
fun tag_lookup = git_tag_lookup(out : X_Tag*, repo : X_Repository, id : Oid*) : LibC::Int
type X_Tag = Void*
fun tag_lookup_prefix = git_tag_lookup_prefix(out : X_Tag*, repo : X_Repository, id : Oid*, len : LibC::SizeT) : LibC::Int
fun tag_free = git_tag_free(tag : X_Tag)
fun tag_id = git_tag_id(tag : X_Tag) : Oid*
fun tag_owner = git_tag_owner(tag : X_Tag) : X_Repository
fun tag_target = git_tag_target(target_out : X_Object*, tag : X_Tag) : LibC::Int
fun tag_target_id = git_tag_target_id(tag : X_Tag) : Oid*
fun tag_target_type = git_tag_target_type(tag : X_Tag) : Otype
fun tag_name = git_tag_name(tag : X_Tag) : LibC::Char*
fun tag_tagger = git_tag_tagger(tag : X_Tag) : Signature*
fun tag_message = git_tag_message(tag : X_Tag) : LibC::Char*
fun tag_create = git_tag_create(oid : Oid*, repo : X_Repository, tag_name : LibC::Char*, target : X_Object, tagger : Signature*, message : LibC::Char*, force : LibC::Int) : LibC::Int
fun tag_annotation_create = git_tag_annotation_create(oid : Oid*, repo : X_Repository, tag_name : LibC::Char*, target : X_Object, tagger : Signature*, message : LibC::Char*) : LibC::Int
fun tag_create_frombuffer = git_tag_create_frombuffer(oid : Oid*, repo : X_Repository, buffer : LibC::Char*, force : LibC::Int) : LibC::Int
fun tag_create_lightweight = git_tag_create_lightweight(oid : Oid*, repo : X_Repository, tag_name : LibC::Char*, target : X_Object, force : LibC::Int) : LibC::Int
fun tag_delete = git_tag_delete(repo : X_Repository, tag_name : LibC::Char*) : LibC::Int
fun tag_list = git_tag_list(tag_names : Strarray*, repo : X_Repository) : LibC::Int
fun tag_list_match = git_tag_list_match(tag_names : Strarray*, pattern : LibC::Char*, repo : X_Repository) : LibC::Int
fun tag_foreach = git_tag_foreach(repo : X_Repository, callback : TagForeachCb, payload : Void*) : LibC::Int
alias TagForeachCb = LibC::Char*, Oid*, Void* -> LibC::Int
fun tag_peel = git_tag_peel(tag_target_out : X_Object*, tag : X_Tag) : LibC::Int
fun threads_init = git_threads_init : LibC::Int
fun threads_shutdown = git_threads_shutdown
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment