summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert G. Jakabosky <bobby@sharedrealm.com>2012-06-21 10:29:06 -0700
committerRobert G. Jakabosky <bobby@sharedrealm.com>2012-06-21 10:29:06 -0700
commitc5b97353696f5d82ca15f69f00f6c4c54fb2afba (patch)
tree1ef905e59215523dcac4a8ede08d2e8eaae4adc9
parent197e332527df25d7139eaaea77d06a943ca2c51b (diff)
downloadluagit2-c5b97353696f5d82ca15f69f00f6c4c54fb2afba.tar.gz
Copy libgit2 docs from json dump.
-rw-r--r--docs/libgit2.json1
-rw-r--r--git2.nobj.lua39
2 files changed, 40 insertions, 0 deletions
diff --git a/docs/libgit2.json b/docs/libgit2.json
new file mode 100644
index 0000000..36a85a1
--- /dev/null
+++ b/docs/libgit2.json
@@ -0,0 +1 @@
+{"examples":[["diff.c","ex/v0.17.0/diff.html"],["general.c","ex/v0.17.0/general.html"],["network/fetch.c","ex/v0.17.0/fetch.html"],["network/git2.c","ex/v0.17.0/git2.html"],["network/index-pack.c","ex/v0.17.0/index-pack.html"],["network/ls-remote.c","ex/v0.17.0/ls-remote.html"],["showindex.c","ex/v0.17.0/showindex.html"]],"functions":{"git_tag_list_match":{"return":{"type":"int","comment":"0 or an error code"},"group":"tag","file":"tag.h","sig":"git_strarray *::const char *::git_repository *","comments":"If an empty pattern is provided, all the tags\n will be returned.\n\n The string array will be filled with the names of the\n matching tags; these values are owned by the user and\n should be free'd manually when no longer needed, using\n `git_strarray_free`.","argline":"git_strarray *tag_names, const char *pattern, git_repository *repo","line":257,"args":[{"type":"git_strarray *","comment":"Pointer to a git_strarray structure where the tag names will be stored","name":"tag_names"},{"type":"const char *","comment":"Standard fnmatch pattern","name":"pattern"},{"type":"git_repository *","comment":"Repository where to find the tags","name":"repo"}],"rawComments":"\n Fill a list with all the tags in the Repository\n which name match a defined pattern\n\n If an empty pattern is provided, all the tags\n will be returned.\n\n The string array will be filled with the names of the\n matching tags; these values are owned by the user and\n should be free'd manually when no longer needed, using\n `git_strarray_free`.\n\n @param tag_names Pointer to a git_strarray structure where\n\t\tthe tag names will be stored\n @param pattern Standard fnmatch pattern\n @param repo Repository where to find the tags\n @return 0 or an error code\n\n","lineto":278,"description":"Fill a list with all the tags in the Repository which name match a defined pattern"},"git_tag_create_frombuffer":{"return":{"type":"int","comment":"0 on sucess; error code otherwise"},"group":"tag","file":"tag.h","sig":"git_oid *::git_repository *::const char *::int","comments":"","argline":"git_oid *oid, git_repository *repo, const char *buffer, int force","line":177,"args":[{"type":"git_oid *","comment":"Pointer where to store the OID of the newly created tag","name":"oid"},{"type":"git_repository *","comment":"Repository where to store the tag","name":"repo"},{"type":"const char *","comment":"Raw tag data","name":"buffer"},{"type":"int","comment":"Overwrite existing tags","name":"force"}],"rawComments":"\n Create a new tag in the repository from a buffer\n\n @param oid Pointer where to store the OID of the newly created tag\n @param repo Repository where to store the tag\n @param buffer Raw tag data\n @param force Overwrite existing tags\n @return 0 on sucess; error code otherwise\n\n","lineto":190,"description":"Create a new tag in the repository from a buffer"},"git_revwalk_hide_head":{"return":{"type":"int","comment":"0 or an error code"},"group":"revwalk","file":"revwalk.h","sig":"git_revwalk *","comments":"","argline":"git_revwalk *walk","line":158,"args":[{"type":"git_revwalk *","comment":"the walker being used for the traversal","name":"walk"}],"rawComments":"\n Hide the repository's HEAD\n\n @param walk the walker being used for the traversal\n @return 0 or an error code\n\n","lineto":164,"description":"Hide the repository's HEAD"},"git_reflog_entry_committer":{"return":{"type":"git_signature *","comment":"the committer"},"group":"reflog","file":"reflog.h","sig":"const git_reflog_entry *","comments":"","argline":"const git_reflog_entry *entry","line":103,"args":[{"type":"const git_reflog_entry *","comment":"a reflog entry","name":"entry"}],"rawComments":"\n Get the committer of this entry\n\n @param entry a reflog entry\n @return the committer\n\n","lineto":109,"description":"Get the committer of this entry"},"git_index_read":{"examples":{"showindex.c":["ex/v0.17.0/showindex.html#git_index_read-1"]},"return":{"type":"int","comment":"0 or an error code"},"group":"index","file":"index.h","sig":"git_index *","comments":"","argline":"git_index *index","line":129,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"}],"rawComments":"\n Update the contents of an existing index object in memory\n by reading from the hard disk.\n\n @param index an existing index object\n @return 0 or an error code\n\n","lineto":136,"description":"Update the contents of an existing index object in memory by reading from the hard disk."},"git_signature_free":{"return":{"type":"void","comment":""},"group":"signature","file":"signature.h","sig":"git_signature *","comments":"","argline":"git_signature *sig","line":56,"args":[{"type":"git_signature *","comment":"signature to free","name":"sig"}],"rawComments":"\n Free an existing signature\n\n @param sig signature to free\n\n","lineto":61,"description":"Free an existing signature"},"git_revwalk_free":{"examples":{"general.c":["ex/v0.17.0/general.html#git_revwalk_free-1"]},"return":{"type":"void","comment":""},"group":"revwalk","file":"revwalk.h","sig":"git_revwalk *","comments":"","argline":"git_revwalk *walk","line":219,"args":[{"type":"git_revwalk *","comment":"traversal handle to close. If NULL nothing occurs.","name":"walk"}],"rawComments":"\n Free a revision walker previously allocated.\n\n @param walk traversal handle to close. If NULL nothing occurs.\n\n","lineto":224,"description":"Free a revision walker previously allocated."},"git_blob_create_fromdisk":{"return":{"type":"int","comment":"0 or an error code"},"group":"blob","file":"blob.h","sig":"git_oid *::git_repository *::const char *","comments":"","argline":"git_oid *oid, git_repository *repo, const char *path","line":106,"args":[{"type":"git_oid *","comment":"return the id of the written blob","name":"oid"},{"type":"git_repository *","comment":"repository where the blob will be written. this repository can be bare or not","name":"repo"},{"type":"const char *","comment":"file from which the blob will be created","name":"path"}],"rawComments":"\n Read a file from the filesystem and write its content\n to the Object Database as a loose blob\n\n @param oid return the id of the written blob\n @param repo repository where the blob will be written.\n\tthis repository can be bare or not\n @param path file from which the blob will be created\n @return 0 or an error code\n\n","lineto":116,"description":"Read a file from the filesystem and write its content to the Object Database as a loose blob"},"git_repository_odb":{"examples":{"general.c":["ex/v0.17.0/general.html#git_repository_odb-2"]},"return":{"type":"int","comment":"0, or an error code"},"group":"repository","file":"repository.h","sig":"git_odb **::git_repository *","comments":"If a custom ODB has not been set, the default\n database for the repository will be returned (the one\n located in `.git/objects`).\n\n The ODB must be freed once it's no longer being used by\n the user.","argline":"git_odb **out, git_repository *repo","line":240,"args":[{"type":"git_odb **","comment":"Pointer to store the loaded ODB","name":"out"},{"type":"git_repository *","comment":"A repository object","name":"repo"}],"rawComments":"\n Get the Object Database for this repository.\n\n If a custom ODB has not been set, the default\n database for the repository will be returned (the one\n located in `.git/objects`).\n\n The ODB must be freed once it's no longer being used by\n the user.\n\n @param out Pointer to store the loaded ODB\n @param repo A repository object\n @return 0, or an error code\n\n","lineto":254,"description":"Get the Object Database for this repository."},"git_commit_message":{"examples":{"general.c":["ex/v0.17.0/general.html#git_commit_message-3","ex/v0.17.0/general.html#git_commit_message-4"]},"return":{"type":"const char *","comment":"the message of a commit"},"group":"commit","file":"commit.h","sig":"git_commit *","comments":"","argline":"git_commit *commit","line":93,"args":[{"type":"git_commit *","comment":"a previously loaded commit.","name":"commit"}],"rawComments":"\n Get the full message of a commit.\n\n @param commit a previously loaded commit.\n @return the message of a commit\n\n","lineto":99,"description":"Get the full message of a commit."},"git_commit_id":{"examples":{"general.c":["ex/v0.17.0/general.html#git_commit_id-5"]},"return":{"type":"const git_oid *","comment":"object identity for the commit."},"group":"commit","file":"commit.h","sig":"git_commit *","comments":"","argline":"git_commit *commit","line":73,"args":[{"type":"git_commit *","comment":"a previously loaded commit.","name":"commit"}],"rawComments":"\n Get the id of a commit.\n\n @param commit a previously loaded commit.\n @return object identity for the commit.\n\n","lineto":79,"description":"Get the id of a commit."},"git_odb_open_rstream":{"return":{"type":"int","comment":"0 if the stream was created; error code otherwise"},"group":"odb","file":"odb.h","sig":"git_odb_stream **::git_odb *::const git_oid *","comments":"Note that most backends do *not* support streaming reads\n because they store their objects as compressed/delta'ed blobs.\n\n It's recommended to use `git_odb_read` instead, which is\n assured to work on all backends.\n\n The returned stream will be of type `GIT_STREAM_RDONLY` and\n will have the following methods:\n\n\t\t- stream->read: read `n` bytes from the stream\n\t\t- stream->free: free the stream\n\n The stream must always be free'd or will leak memory.\n\n @see git_odb_stream","argline":"git_odb_stream **stream, git_odb *db, const git_oid *oid","line":224,"args":[{"type":"git_odb_stream **","comment":"pointer where to store the stream","name":"stream"},{"type":"git_odb *","comment":"object database where the stream will read from","name":"db"},{"type":"const git_oid *","comment":"oid of the object the stream will read from","name":"oid"}],"rawComments":"\n Open a stream to read an object from the ODB\n\n Note that most backends do *not* support streaming reads\n because they store their objects as compressed/delta'ed blobs.\n\n It's recommended to use `git_odb_read` instead, which is\n assured to work on all backends.\n\n The returned stream will be of type `GIT_STREAM_RDONLY` and\n will have the following methods:\n\n\t\t- stream->read: read `n` bytes from the stream\n\t\t- stream->free: free the stream\n\n The stream must always be free'd or will leak memory.\n\n @see git_odb_stream\n\n @param stream pointer where to store the stream\n @param db object database where the stream will read from\n @param oid oid of the object the stream will read from\n @return 0 if the stream was created; error code otherwise\n\n","lineto":248,"description":"Open a stream to read an object from the ODB"},"git_attr_get_many":{"return":{"type":"int","comment":""},"group":"attr","file":"attr.h","sig":"const char **::git_repository *::uint32_t::const char *::size_t::const char **","comments":"Use this if you have a known list of attributes that you want to\n look up in a single call. This is somewhat more efficient than\n calling `git_attr_get()` multiple times.\n\n For example, you might write:\n\n const char *attrs[] = { \"crlf\", \"diff\", \"foo\" };\n const char **values[3];\n git_attr_get_many(values, repo, 0, \"my/fun/file.c\", 3, attrs);\n\n Then you could loop through the 3 values to get the settings for\n the three attributes you asked about.\n\n @param values An array of num_attr entries that will have string\n pointers written into it for the values of the attributes.\n You should not modify or free the values that are written\n into this array (although of course, you should free the\n array itself if you allocated it).","argline":"const char **values_out, git_repository *repo, uint32_t flags, const char *path, size_t num_attr, const char **names","line":133,"args":[{"type":"const char **","comment":"","name":"values_out"},{"type":"git_repository *","comment":"The repository containing the path.","name":"repo"},{"type":"uint32_t","comment":"A combination of GIT_ATTR_CHECK... flags.","name":"flags"},{"type":"const char *","comment":"The path inside the repo to check attributes. This does not have to exist, but if it does not, then it will be treated as a plain file (i.e. not a directory).","name":"path"},{"type":"size_t","comment":"The number of attributes being looked up","name":"num_attr"},{"type":"const char **","comment":"An array of num_attr strings containing attribute names.","name":"names"}],"rawComments":"\n Look up a list of git attributes for path.\n\n Use this if you have a known list of attributes that you want to\n look up in a single call. This is somewhat more efficient than\n calling `git_attr_get()` multiple times.\n\n For example, you might write:\n\n const char *attrs[] = { \"crlf\", \"diff\", \"foo\" };\n const char **values[3];\n git_attr_get_many(values, repo, 0, \"my/fun/file.c\", 3, attrs);\n\n Then you could loop through the 3 values to get the settings for\n the three attributes you asked about.\n\n @param values An array of num_attr entries that will have string\n pointers written into it for the values of the attributes.\n You should not modify or free the values that are written\n into this array (although of course, you should free the\n array itself if you allocated it).\n @param repo The repository containing the path.\n @param flags A combination of GIT_ATTR_CHECK... flags.\n @param path The path inside the repo to check attributes. This\n does not have to exist, but if it does not, then\n it will be treated as a plain file (i.e. not a directory).\n @param num_attr The number of attributes being looked up\n @param names An array of num_attr strings containing attribute names.\n\n","lineto":168,"description":"Look up a list of git attributes for path."},"git_config_set_string":{"return":{"type":"int","comment":"0 or an error code"},"group":"config","file":"config.h","sig":"git_config *::const char *::const char *","comments":"A copy of the string is made and the user is free to use it\n afterwards.","argline":"git_config *cfg, const char *name, const char *value","line":267,"args":[{"type":"git_config *","comment":"where to look for the variable","name":"cfg"},{"type":"const char *","comment":"the variable's name","name":"name"},{"type":"const char *","comment":"the string to store.","name":"value"}],"rawComments":"\n Set the value of a string config variable.\n\n A copy of the string is made and the user is free to use it\n afterwards.\n\n @param cfg where to look for the variable\n @param name the variable's name\n @param value the string to store.\n @return 0 or an error code\n\n","lineto":278,"description":"Set the value of a string config variable."},"git_oid_iszero":{"examples":{"network/fetch.c":["ex/v0.17.0/fetch.html#git_oid_iszero-1"]},"return":{"type":"int","comment":""},"group":"oid","file":"oid.h","sig":"const git_oid *","comments":"","argline":"const git_oid *a","line":162,"args":[{"type":"const git_oid *","comment":"","name":"a"}],"rawComments":"\n Check is an oid is all zeros.\n\n","lineto":165,"description":"Check is an oid is all zeros."},"git_blob_rawcontent":{"examples":{"general.c":["ex/v0.17.0/general.html#git_blob_rawcontent-6"]},"return":{"type":"const void *","comment":"the pointer; NULL if the blob has no contents"},"group":"blob","file":"blob.h","sig":"git_blob *","comments":"A pointer to the raw content of a blob is returned;\n this pointer is owned internally by the object and shall\n not be free'd. The pointer may be invalidated at a later\n time.","argline":"git_blob *blob","line":72,"args":[{"type":"git_blob *","comment":"pointer to the blob","name":"blob"}],"rawComments":"\n Get a read-only buffer with the raw content of a blob.\n\n A pointer to the raw content of a blob is returned;\n this pointer is owned internally by the object and shall\n not be free'd. The pointer may be invalidated at a later\n time.\n\n @param blob pointer to the blob\n @return the pointer; NULL if the blob has no contents\n\n","lineto":83,"description":"Get a read-only buffer with the raw content of a blob."},"git_reflog_free":{"return":{"type":"void","comment":""},"group":"reflog","file":"reflog.h","sig":"git_reflog *","comments":"","argline":"git_reflog *reflog","line":119,"args":[{"type":"git_reflog *","comment":"reflog to free","name":"reflog"}],"rawComments":"\n Free the reflog\n\n @param reflog reflog to free\n\n","lineto":124,"description":"Free the reflog"},"git_odb_free":{"return":{"type":"void","comment":""},"group":"odb","file":"odb.h","sig":"git_odb *","comments":"","argline":"git_odb *db","line":90,"args":[{"type":"git_odb *","comment":"database pointer to close. If NULL no action is taken.","name":"db"}],"rawComments":"\n Close an open object database.\n\n @param db database pointer to close. If NULL no action is taken.\n\n","lineto":95,"description":"Close an open object database."},"git_commit_parent_oid":{"return":{"type":"const git_oid *","comment":"the id of the parent, NULL on error."},"group":"commit","file":"commit.h","sig":"git_commit *::unsigned int","comments":"","argline":"git_commit *commit, unsigned int n","line":170,"args":[{"type":"git_commit *","comment":"a previously loaded commit.","name":"commit"},{"type":"unsigned int","comment":"the position of the parent (from 0 to `parentcount`)","name":"n"}],"rawComments":"\n Get the oid of a specified parent for a commit. This is different from\n `git_commit_parent`, which will attempt to load the parent commit from\n the ODB.\n\n @param commit a previously loaded commit.\n @param n the position of the parent (from 0 to `parentcount`)\n @return the id of the parent, NULL on error.\n\n","lineto":179,"description":"Get the oid of a specified parent for a commit. This is different from `git_commit_parent`, which will attempt to load the parent commit from the ODB."},"git_odb_object_id":{"return":{"type":"const git_oid *","comment":"a pointer to the OID"},"group":"odb","file":"odb.h","sig":"git_odb_object *","comments":"This is the OID from which the object was read from","argline":"git_odb_object *object","line":287,"args":[{"type":"git_odb_object *","comment":"the object","name":"object"}],"rawComments":"\n Return the OID of an ODB object\n\n This is the OID from which the object was read from\n\n @param object the object\n @return a pointer to the OID\n\n","lineto":295,"description":"Return the OID of an ODB object"},"git_config_open_ondisk":{"examples":{"general.c":["ex/v0.17.0/general.html#git_config_open_ondisk-7"]},"return":{"type":"int","comment":"0 or an error code"},"group":"config","file":"config.h","sig":"git_config **::const char *","comments":"This method is a simple utility wrapper for the following sequence\n of calls:\n\t- git_config_new\n\t- git_config_add_file_ondisk","argline":"git_config **cfg, const char *path","line":156,"args":[{"type":"git_config **","comment":"The configuration instance to create","name":"cfg"},{"type":"const char *","comment":"Path to the on-disk file to open","name":"path"}],"rawComments":"\n Create a new config instance containing a single on-disk file\n\n This method is a simple utility wrapper for the following sequence\n of calls:\n\t- git_config_new\n\t- git_config_add_file_ondisk\n\n @param cfg The configuration instance to create\n @param path Path to the on-disk file to open\n @return 0 or an error code\n\n","lineto":168,"description":"Create a new config instance containing a single on-disk file"},"git_reference_oid":{"examples":{"general.c":["ex/v0.17.0/general.html#git_reference_oid-8"],"diff.c":["ex/v0.17.0/diff.html#git_reference_oid-1"]},"return":{"type":"const git_oid *","comment":"a pointer to the oid if available, NULL otherwise"},"group":"reference","file":"refs.h","sig":"git_reference *","comments":"Only available if the reference is direct (i.e. not symbolic)","argline":"git_reference *ref","line":86,"args":[{"type":"git_reference *","comment":"The reference","name":"ref"}],"rawComments":"\n Get the OID pointed to by a reference.\n\n Only available if the reference is direct (i.e. not symbolic)\n\n @param ref The reference\n @return a pointer to the oid if available, NULL otherwise\n\n","lineto":94,"description":"Get the OID pointed to by a reference."},"git_object_typeisloose":{"return":{"type":"int","comment":"true if the type represents a valid loose object type, false otherwise."},"group":"object","file":"object.h","sig":"git_otype","comments":"","argline":"git_otype type","line":147,"args":[{"type":"git_otype","comment":"object type to test.","name":"type"}],"rawComments":"\n Determine if the given git_otype is a valid loose object type.\n\n @param type object type to test.\n @return true if the type represents a valid loose object type,\n false otherwise.\n\n","lineto":154,"description":"Determine if the given git_otype is a valid loose object type."},"git_remote_list":{"return":{"type":"int","comment":"0 or an error code"},"group":"remote","file":"remote.h","sig":"git_strarray *::git_repository *","comments":"The string array must be freed by the user.","argline":"git_strarray *remotes_list, git_repository *repo","line":211,"args":[{"type":"git_strarray *","comment":"a string array with the names of the remotes","name":"remotes_list"},{"type":"git_repository *","comment":"the repository to query","name":"repo"}],"rawComments":"\n Get a list of the configured remotes for a repo\n\n The string array must be freed by the user.\n\n @param remotes_list a string array with the names of the remotes\n @param repo the repository to query\n @return 0 or an error code\n\n","lineto":220,"description":"Get a list of the configured remotes for a repo"},"git_revwalk_sorting":{"examples":{"general.c":["ex/v0.17.0/general.html#git_revwalk_sorting-9"]},"return":{"type":"void","comment":""},"group":"revwalk","file":"revwalk.h","sig":"git_revwalk *::unsigned int","comments":"Changing the sorting mode resets the walker.","argline":"git_revwalk *walk, unsigned int sort_mode","line":208,"args":[{"type":"git_revwalk *","comment":"the walker being used for the traversal.","name":"walk"},{"type":"unsigned int","comment":"combination of GIT_SORT_XXX flags","name":"sort_mode"}],"rawComments":"\n Change the sorting mode when iterating through the\n repository's contents.\n\n Changing the sorting mode resets the walker.\n\n @param walk the walker being used for the traversal.\n @param sort_mode combination of GIT_SORT_XXX flags\n\n","lineto":217,"description":"Change the sorting mode when iterating through the repository's contents."},"git_remote_set_fetchspec":{"return":{"type":"int","comment":"0 or an error value"},"group":"remote","file":"remote.h","sig":"git_remote *::const char *","comments":"@apram spec the new fetch refspec","argline":"git_remote *remote, const char *spec","line":82,"args":[{"type":"git_remote *","comment":"the remote","name":"remote"},{"type":"const char *","comment":"","name":"spec"}],"rawComments":"\n Set the remote's fetch refspec\n\n @param remote the remote\n @apram spec the new fetch refspec\n @return 0 or an error value\n\n","lineto":89,"description":"Set the remote's fetch refspec"},"git_tag_free":{"return":{"type":"void","comment":""},"group":"tag","file":"tag.h","sig":"git_tag *","comments":"This is a wrapper around git_object_free()\n\n IMPORTANT:\n It *is* necessary to call this method when you stop\n using a tag. Failure to do so will cause a memory leak.","argline":"git_tag *tag","line":54,"args":[{"type":"git_tag *","comment":"the tag to close","name":"tag"}],"rawComments":"\n Close an open tag\n\n This is a wrapper around git_object_free()\n\n IMPORTANT:\n It *is* necessary to call this method when you stop\n using a tag. Failure to do so will cause a memory leak.\n\n @param tag the tag to close\n\n","lineto":69,"description":"Close an open tag"},"git_revwalk_hide":{"return":{"type":"int","comment":"0 or an error code"},"group":"revwalk","file":"revwalk.h","sig":"git_revwalk *::const git_oid *","comments":"The given OID must belong to a commit on the walked\n repository.\n\n The resolved commit and all its parents will be hidden from the\n output on the revision walk.","argline":"git_revwalk *walk, const git_oid *oid","line":127,"args":[{"type":"git_revwalk *","comment":"the walker being used for the traversal.","name":"walk"},{"type":"const git_oid *","comment":"the oid of commit that will be ignored during the traversal","name":"oid"}],"rawComments":"\n Mark a commit (and its ancestors) uninteresting for the output.\n\n The given OID must belong to a commit on the walked\n repository.\n\n The resolved commit and all its parents will be hidden from the\n output on the revision walk.\n\n @param walk the walker being used for the traversal.\n @param oid the oid of commit that will be ignored during the traversal\n @return 0 or an error code\n\n","lineto":140,"description":"Mark a commit (and its ancestors) uninteresting for the output."},"git_blob_rawsize":{"examples":{"general.c":["ex/v0.17.0/general.html#git_blob_rawsize-10","ex/v0.17.0/general.html#git_blob_rawsize-11"]},"return":{"type":"size_t","comment":"size on bytes"},"group":"blob","file":"blob.h","sig":"git_blob *","comments":"","argline":"git_blob *blob","line":85,"args":[{"type":"git_blob *","comment":"pointer to the blob","name":"blob"}],"rawComments":"\n Get the size in bytes of the contents of a blob\n\n @param blob pointer to the blob\n @return size on bytes\n\n","lineto":91,"description":"Get the size in bytes of the contents of a blob"},"git_commit_author":{"examples":{"general.c":["ex/v0.17.0/general.html#git_commit_author-12","ex/v0.17.0/general.html#git_commit_author-13"]},"return":{"type":"const git_signature *","comment":"the author of a commit"},"group":"commit","file":"commit.h","sig":"git_commit *","comments":"","argline":"git_commit *commit","line":125,"args":[{"type":"git_commit *","comment":"a previously loaded commit.","name":"commit"}],"rawComments":"\n Get the author of a commit.\n\n @param commit a previously loaded commit.\n @return the author of a commit\n\n","lineto":131,"description":"Get the author of a commit."},"git_remote_supported_url":{"return":{"type":"int","comment":"1 if the url is supported, 0 otherwise"},"group":"remote","file":"remote.h","sig":"const char*","comments":"","argline":"const char* url","line":203,"args":[{"type":"const char*","comment":"the url to check","name":"url"}],"rawComments":"\n Return whether the passed URL is supported by this version of the library.\n\n @param url the url to check\n @return 1 if the url is supported, 0 otherwise\n\n","lineto":209,"description":"Return whether the passed URL is supported by this version of the library."},"git_reference_foreach":{"return":{"type":"int","comment":"0 or an error code"},"group":"reference","file":"refs.h","sig":"git_repository *::unsigned int::int(*)(const char *, void *)::void *","comments":"The processed references may be filtered by type, or using\n a bitwise OR of several types. Use the magic value\n `GIT_REF_LISTALL` to obtain all references, including\n packed ones.\n\n The `callback` function will be called for each of the references\n in the repository, and will receive the name of the reference and\n the `payload` value passed to this method.","argline":"git_repository *repo, unsigned int list_flags, int (*callback)(const char *, void *), void *payload","line":262,"args":[{"type":"git_repository *","comment":"Repository where to find the refs","name":"repo"},{"type":"unsigned int","comment":"Filtering flags for the reference listing.","name":"list_flags"},{"type":"int(*)(const char *, void *)","comment":"Function which will be called for every listed ref","name":"callback"},{"type":"void *","comment":"Additional data to pass to the callback","name":"payload"}],"rawComments":"\n Perform an operation on each reference in the repository\n\n The processed references may be filtered by type, or using\n a bitwise OR of several types. Use the magic value\n `GIT_REF_LISTALL` to obtain all references, including\n packed ones.\n\n The `callback` function will be called for each of the references\n in the repository, and will receive the name of the reference and\n the `payload` value passed to this method.\n\n @param repo Repository where to find the refs\n @param list_flags Filtering flags for the reference\n\t\tlisting.\n @param callback Function which will be called for every listed ref\n @param payload Additional data to pass to the callback\n @return 0 or an error code\n\n","lineto":281,"description":"Perform an operation on each reference in the repository"},"git_config_add_file":{"return":{"type":"int","comment":"0 or an error code"},"group":"config","file":"config.h","sig":"git_config *::git_config_file *::int","comments":"Note that the configuration object will free the file\n automatically.\n\n Further queries on this config object will access each\n of the config file instances in order (instances with\n a higher priority will be accessed first).","argline":"git_config *cfg, git_config_file *file, int priority","line":117,"args":[{"type":"git_config *","comment":"the configuration to add the file to","name":"cfg"},{"type":"git_config_file *","comment":"the configuration file (backend) to add","name":"file"},{"type":"int","comment":"the priority the backend should have","name":"priority"}],"rawComments":"\n Add a generic config file instance to an existing config\n\n Note that the configuration object will free the file\n automatically.\n\n Further queries on this config object will access each\n of the config file instances in order (instances with\n a higher priority will be accessed first).\n\n @param cfg the configuration to add the file to\n @param file the configuration file (backend) to add\n @param priority the priority the backend should have\n @return 0 or an error code\n\n","lineto":132,"description":"Add a generic config file instance to an existing config"},"git_odb_add_alternate":{"return":{"type":"int","comment":"0 on sucess; error code otherwise"},"group":"odb","file":"odb.h","sig":"git_odb *::git_odb_backend *::int","comments":"Alternate backends are always checked for objects *after*\n all the main backends have been exhausted.\n\n The backends are checked in relative ordering, based on the\n value of the `priority` parameter.\n\n Writing is disabled on alternate backends.\n\n Read <odb_backends.h> for more information.","argline":"git_odb *odb, git_odb_backend *backend, int priority","line":69,"args":[{"type":"git_odb *","comment":"database to add the backend to","name":"odb"},{"type":"git_odb_backend *","comment":"pointer to a git_odb_backend instance","name":"backend"},{"type":"int","comment":"Value for ordering the backends queue","name":"priority"}],"rawComments":"\n Add a custom backend to an existing Object DB; this\n backend will work as an alternate.\n\n Alternate backends are always checked for objects *after*\n all the main backends have been exhausted.\n\n The backends are checked in relative ordering, based on the\n value of the `priority` parameter.\n\n Writing is disabled on alternate backends.\n\n Read <odb_backends.h> for more information.\n\n @param odb database to add the backend to\n @param backend pointer to a git_odb_backend instance\n @param priority Value for ordering the backends queue\n @return 0 on sucess; error code otherwise\n\n","lineto":88,"description":"Add a custom backend to an existing Object DB; this backend will work as an alternate."},"git_refspec_src_matches":{"return":{"type":"int","comment":"1 if the refspec matches, 0 otherwise"},"group":"refspec","file":"refspec.h","sig":"const git_refspec *::const char *","comments":"","argline":"const git_refspec *refspec, const char *refname","line":38,"args":[{"type":"const git_refspec *","comment":"the refspec","name":"refspec"},{"type":"const char *","comment":"the name of the reference to check","name":"refname"}],"rawComments":"\n Check if a refspec's source descriptor matches a reference\n\n @param refspec the refspec\n @param refname the name of the reference to check\n @return 1 if the refspec matches, 0 otherwise\n\n","lineto":45,"description":"Check if a refspec's source descriptor matches a reference"},"git_attr_foreach":{"return":{"type":"int","comment":""},"group":"attr","file":"attr.h","sig":"git_repository *::uint32_t::const char *::int(*)(const char *name, const char *value, void *payload)::void *","comments":"","argline":"git_repository *repo, uint32_t flags, const char *path, int (*callback)(const char *name, const char *value, void *payload), void *payload","line":170,"args":[{"type":"git_repository *","comment":"The repository containing the path.","name":"repo"},{"type":"uint32_t","comment":"A combination of GIT_ATTR_CHECK... flags.","name":"flags"},{"type":"const char *","comment":"The path inside the repo to check attributes. This does not have to exist, but if it does not, then it will be treated as a plain file (i.e. not a directory).","name":"path"},{"type":"int(*)(const char *name, const char *value, void *payload)","comment":"The function that will be invoked on each attribute and attribute value. The name parameter will be the name of the attribute and the value will be the value it is set to, including possibly NULL if the attribute is explicitly set to UNSPECIFIED using the ! sign. This will be invoked only once per attribute name, even if there are multiple rules for a given file. The highest priority rule will be used.","name":"callback"},{"type":"void *","comment":"Passed on as extra parameter to callback function.","name":"payload"}],"rawComments":"\n Loop over all the git attributes for a path.\n\n @param repo The repository containing the path.\n @param flags A combination of GIT_ATTR_CHECK... flags.\n @param path The path inside the repo to check attributes. This\n does not have to exist, but if it does not, then\n it will be treated as a plain file (i.e. not a directory).\n @param callback The function that will be invoked on each attribute\n and attribute value. The name parameter will be the name\n of the attribute and the value will be the value it is\n set to, including possibly NULL if the attribute is\n explicitly set to UNSPECIFIED using the ! sign. This\n will be invoked only once per attribute name, even if\n there are multiple rules for a given file. The highest\n priority rule will be used.\n @param payload Passed on as extra parameter to callback function.\n\n","lineto":193,"description":"Loop over all the git attributes for a path."},"git_index_clear":{"return":{"type":"void","comment":""},"group":"index","file":"index.h","sig":"git_index *","comments":"","argline":"git_index *index","line":113,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"}],"rawComments":"\n Clear the contents (all the entries) of an index object.\n This clears the index object in memory; changes must be manually\n written to disk for them to take effect.\n\n @param index an existing index object\n\n","lineto":120,"description":"Clear the contents (all the entries) of an index object. This clears the index object in memory; changes must be manually written to disk for them to take effect."},"git_odb_add_backend":{"return":{"type":"int","comment":"0 on sucess; error code otherwise"},"group":"odb","file":"odb.h","sig":"git_odb *::git_odb_backend *::int","comments":"The backends are checked in relative ordering, based on the\n value of the `priority` parameter.\n\n Read <odb_backends.h> for more information.","argline":"git_odb *odb, git_odb_backend *backend, int priority","line":54,"args":[{"type":"git_odb *","comment":"database to add the backend to","name":"odb"},{"type":"git_odb_backend *","comment":"pointer to a git_odb_backend instance","name":"backend"},{"type":"int","comment":"Value for ordering the backends queue","name":"priority"}],"rawComments":"\n Add a custom backend to an existing Object DB\n\n The backends are checked in relative ordering, based on the\n value of the `priority` parameter.\n\n Read <odb_backends.h> for more information.\n\n @param odb database to add the backend to\n @param backend pointer to a git_odb_backend instance\n @param priority Value for ordering the backends queue\n @return 0 on sucess; error code otherwise\n\n","lineto":67,"description":"Add a custom backend to an existing Object DB"},"git_commit_message_encoding":{"return":{"type":"const char *","comment":"NULL, or the encoding"},"group":"commit","file":"commit.h","sig":"git_commit *","comments":"The encoding may be NULL if the `encoding` header\n in the commit is missing; in that case UTF-8 is assumed.","argline":"git_commit *commit","line":81,"args":[{"type":"git_commit *","comment":"a previously loaded commit.","name":"commit"}],"rawComments":"\n Get the encoding for the message of a commit,\n as a string representing a standard encoding name.\n\n The encoding may be NULL if the `encoding` header\n in the commit is missing; in that case UTF-8 is assumed.\n\n @param commit a previously loaded commit.\n @return NULL, or the encoding\n\n","lineto":91,"description":"Get the encoding for the message of a commit, as a string representing a standard encoding name."},"git_repository_config":{"return":{"type":"int","comment":"0, or an error code"},"group":"repository","file":"repository.h","sig":"git_config **::git_repository *","comments":"If a configuration file has not been set, the default\n config set for the repository will be returned, including\n global and system configurations (if they are available).\n\n The configuration file must be freed once it's no longer\n being used by the user.","argline":"git_config **out, git_repository *repo","line":209,"args":[{"type":"git_config **","comment":"Pointer to store the loaded config file","name":"out"},{"type":"git_repository *","comment":"A repository object","name":"repo"}],"rawComments":"\n Get the configuration file for this repository.\n\n If a configuration file has not been set, the default\n config set for the repository will be returned, including\n global and system configurations (if they are available).\n\n The configuration file must be freed once it's no longer\n being used by the user.\n\n @param out Pointer to store the loaded config file\n @param repo A repository object\n @return 0, or an error code\n\n","lineto":223,"description":"Get the configuration file for this repository."},"git_diff_print_patch":{"examples":{"diff.c":["ex/v0.17.0/diff.html#git_diff_print_patch-2"]},"return":{"type":"int","comment":""},"group":"diff","file":"diff.h","sig":"git_diff_list *::void *::git_diff_data_fn","comments":"This is a super easy way to generate a patch from a diff.","argline":"git_diff_list *diff, void *cb_data, git_diff_data_fn print_cb","line":321,"args":[{"type":"git_diff_list *","comment":"","name":"diff"},{"type":"void *","comment":"","name":"cb_data"},{"type":"git_diff_data_fn","comment":"","name":"print_cb"}],"rawComments":"\n Iterate over a diff generating text output like \"git diff\".\n\n This is a super easy way to generate a patch from a diff.\n\n","lineto":329,"description":"Iterate over a diff generating text output like \"git diff\"."},"git_reference_reload":{"return":{"type":"int","comment":"0 on success, or an error code"},"group":"reference","file":"refs.h","sig":"git_reference *","comments":"Reference pointers may become outdated if the Git\n repository is accessed simultaneously by other clients\n whilt the library is open.\n\n This method forces a reload of the reference from disk,\n to ensure that the provided information is still\n reliable.\n\n If the reload fails (e.g. the reference no longer exists\n on disk, or has become corrupted), an error code will be\n returned and the reference pointer will be invalidated.","argline":"git_reference *ref","line":291,"args":[{"type":"git_reference *","comment":"The reference to reload","name":"ref"}],"rawComments":"\n Reload a reference from disk\n\n Reference pointers may become outdated if the Git\n repository is accessed simultaneously by other clients\n whilt the library is open.\n\n This method forces a reload of the reference from disk,\n to ensure that the provided information is still\n reliable.\n\n If the reload fails (e.g. the reference no longer exists\n on disk, or has become corrupted), an error code will be\n returned and the reference pointer will be invalidated.\n\n @param ref The reference to reload\n @return 0 on success, or an error code\n\n","lineto":309,"description":"Reload a reference from disk"},"git_repository_discover":{"examples":{"diff.c":["ex/v0.17.0/diff.html#git_repository_discover-3"]},"return":{"type":"int","comment":"0 or an error code"},"group":"repository","file":"repository.h","sig":"char *::size_t::const char *::int::const char *","comments":"The method will automatically detect if the repository is bare\n (if there is a repository).","argline":"char *repository_path, size_t size, const char *start_path, int across_fs, const char *ceiling_dirs","line":38,"args":[{"type":"char *","comment":"The user allocated buffer which will contain the found path.","name":"repository_path"},{"type":"size_t","comment":"repository_path size","name":"size"},{"type":"const char *","comment":"The base path where the lookup starts.","name":"start_path"},{"type":"int","comment":"If true, then the lookup will not stop when a filesystem device change is detected while exploring parent directories.","name":"across_fs"},{"type":"const char *","comment":"A GIT_PATH_LIST_SEPARATOR separated list of absolute symbolic link free paths. The lookup will stop when any of this paths is reached. Note that the lookup always performs on start_path no matter start_path appears in ceiling_dirs ceiling_dirs might be NULL (which is equivalent to an empty string)","name":"ceiling_dirs"}],"rawComments":"\n Look for a git repository and copy its path in the given buffer.\n The lookup start from base_path and walk across parent directories\n if nothing has been found. The lookup ends when the first repository\n is found, or when reaching a directory referenced in ceiling_dirs\n or when the filesystem changes (in case across_fs is true).\n\n The method will automatically detect if the repository is bare\n (if there is a repository).\n\n @param repository_path The user allocated buffer which will\n contain the found path.\n\n @param size repository_path size\n\n @param start_path The base path where the lookup starts.\n\n @param across_fs If true, then the lookup will not stop when a\n filesystem device change is detected while exploring parent directories.\n\n @param ceiling_dirs A GIT_PATH_LIST_SEPARATOR separated list of\n absolute symbolic link free paths. The lookup will stop when any\n of this paths is reached. Note that the lookup always performs on\n start_path no matter start_path appears in ceiling_dirs ceiling_dirs\n might be NULL (which is equivalent to an empty string)\n\n @return 0 or an error code\n\n","lineto":76,"description":"Look for a git repository and copy its path in the given buffer. The lookup start from base_path and walk across parent directories if nothing has been found. The lookup ends when the first repository is found, or when reaching a directory referenced in ceiling_dirs or when the filesystem changes (in case across_fs is true)."},"git_index_append":{"return":{"type":"int","comment":"0 or an error code"},"group":"index","file":"index.h","sig":"git_index *::const char *::int","comments":"A new entry will always be inserted into the index;\n if the index already contains an entry for such\n path, the old entry will **not** be replaced.\n\n The file `path` must be relative to the repository's\n working folder and must be readable.\n\n This method will fail in bare index instances.","argline":"git_index *index, const char *path, int stage","line":195,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"},{"type":"const char *","comment":"filename to add","name":"path"},{"type":"int","comment":"stage for the entry","name":"stage"}],"rawComments":"\n Add (append) an index entry from a file in disk\n\n A new entry will always be inserted into the index;\n if the index already contains an entry for such\n path, the old entry will **not** be replaced.\n\n The file `path` must be relative to the repository's\n working folder and must be readable.\n\n This method will fail in bare index instances.\n\n @param index an existing index object\n @param path filename to add\n @param stage stage for the entry\n @return 0 or an error code\n\n","lineto":212,"description":"Add (append) an index entry from a file in disk"},"git_odb_backend_loose":{"return":{"type":"int","comment":""},"group":"odb","file":"odb_backend.h","sig":"git_odb_backend **::const char *::int::int","comments":"","argline":"git_odb_backend **backend_out, const char *objects_dir, int compression_level, int do_fsync","line":96,"args":[{"type":"git_odb_backend **","comment":"","name":"backend_out"},{"type":"const char *","comment":"","name":"objects_dir"},{"type":"int","comment":"","name":"compression_level"},{"type":"int","comment":"","name":"do_fsync"}],"rawComments":"","lineto":96,"description":""},"git_tree_entry_id":{"return":{"type":"const git_oid *","comment":"the oid of the object"},"group":"tree","file":"tree.h","sig":"const git_tree_entry *","comments":"","argline":"const git_tree_entry *entry","line":122,"args":[{"type":"const git_tree_entry *","comment":"a tree entry","name":"entry"}],"rawComments":"\n Get the id of the object pointed by the entry\n\n @param entry a tree entry\n @return the oid of the object\n\n","lineto":128,"description":"Get the id of the object pointed by the entry"},"git_tree_id":{"return":{"type":"const git_oid *","comment":"object identity for the tree."},"group":"tree","file":"tree.h","sig":"git_tree *","comments":"","argline":"git_tree *tree","line":72,"args":[{"type":"git_tree *","comment":"a previously loaded tree.","name":"tree"}],"rawComments":"\n Get the id of a tree.\n\n @param tree a previously loaded tree.\n @return object identity for the tree.\n\n","lineto":78,"description":"Get the id of a tree."},"git_reference_target":{"examples":{"general.c":["ex/v0.17.0/general.html#git_reference_target-14"]},"return":{"type":"const char *","comment":"a pointer to the name if available, NULL otherwise"},"group":"reference","file":"refs.h","sig":"git_reference *","comments":"Only available if the reference is symbolic","argline":"git_reference *ref","line":96,"args":[{"type":"git_reference *","comment":"The reference","name":"ref"}],"rawComments":"\n Get full name to the reference pointed by this reference\n\n Only available if the reference is symbolic\n\n @param ref The reference\n @return a pointer to the name if available, NULL otherwise\n\n","lineto":104,"description":"Get full name to the reference pointed by this reference"},"git_diff_blobs":{"return":{"type":"int","comment":""},"group":"diff","file":"diff.h","sig":"git_blob *::git_blob *::git_diff_options *::void *::git_diff_file_fn::git_diff_hunk_fn::git_diff_data_fn","comments":"Compared to a file, a blob lacks some contextual information. As such, the\n `git_diff_file` parameters of the callbacks will be filled accordingly to the following:\n `mode` will be set to 0, `path` will be set to NULL. When dealing with a NULL blob, `oid`\n will be set to 0.\n\n When at least one of the blobs being dealt with is binary, the `git_diff_delta` binary\n attribute will be set to 1 and no call to the hunk_cb nor line_cb will be made.","argline":"git_blob *old_blob, git_blob *new_blob, git_diff_options *options, void *cb_data, git_diff_file_fn file_cb, git_diff_hunk_fn hunk_cb, git_diff_data_fn line_cb","line":338,"args":[{"type":"git_blob *","comment":"","name":"old_blob"},{"type":"git_blob *","comment":"","name":"new_blob"},{"type":"git_diff_options *","comment":"","name":"options"},{"type":"void *","comment":"","name":"cb_data"},{"type":"git_diff_file_fn","comment":"","name":"file_cb"},{"type":"git_diff_hunk_fn","comment":"","name":"hunk_cb"},{"type":"git_diff_data_fn","comment":"","name":"line_cb"}],"rawComments":"\n Directly run a text diff on two blobs.\n\n Compared to a file, a blob lacks some contextual information. As such, the\n `git_diff_file` parameters of the callbacks will be filled accordingly to the following:\n `mode` will be set to 0, `path` will be set to NULL. When dealing with a NULL blob, `oid`\n will be set to 0.\n\n When at least one of the blobs being dealt with is binary, the `git_diff_delta` binary\n attribute will be set to 1 and no call to the hunk_cb nor line_cb will be made.\n\n","lineto":358,"description":"Directly run a text diff on two blobs."},"git_config_get_string":{"examples":{"general.c":["ex/v0.17.0/general.html#git_config_get_string-15"]},"return":{"type":"int","comment":"0 or an error code"},"group":"config","file":"config.h","sig":"const char **::git_config *::const char *","comments":"The string is owned by the variable and should not be freed by the\n user.","argline":"const char **out, git_config *cfg, const char *name","line":210,"args":[{"type":"const char **","comment":"pointer to the variable's value","name":"out"},{"type":"git_config *","comment":"where to look for the variable","name":"cfg"},{"type":"const char *","comment":"the variable's name","name":"name"}],"rawComments":"\n Get the value of a string config variable.\n\n The string is owned by the variable and should not be freed by the\n user.\n\n @param out pointer to the variable's value\n @param cfg where to look for the variable\n @param name the variable's name\n @return 0 or an error code\n\n","lineto":221,"description":"Get the value of a string config variable."},"git_treebuilder_filter":{"return":{"type":"void","comment":""},"group":"treebuilder","file":"tree.h","sig":"git_treebuilder *::int(*)(const git_tree_entry *, void *)::void *","comments":"The `filter` callback will be called for each entry\n in the tree with a pointer to the entry and the\n provided `payload`: if the callback returns 1, the\n entry will be filtered (removed from the builder).","argline":"git_treebuilder *bld, int (*filter)(const git_tree_entry *, void *), void *payload","line":244,"args":[{"type":"git_treebuilder *","comment":"Tree builder","name":"bld"},{"type":"int(*)(const git_tree_entry *, void *)","comment":"Callback to filter entries","name":"filter"},{"type":"void *","comment":"","name":"payload"}],"rawComments":"\n Filter the entries in the tree\n\n The `filter` callback will be called for each entry\n in the tree with a pointer to the entry and the\n provided `payload`: if the callback returns 1, the\n entry will be filtered (removed from the builder).\n\n @param bld Tree builder\n @param filter Callback to filter entries\n\n","lineto":255,"description":"Filter the entries in the tree"},"git_note_oid":{"return":{"type":"const git_oid *","comment":"the note object OID"},"group":"note","file":"notes.h","sig":"git_note *","comments":"@param note","argline":"git_note *note","line":45,"args":[{"type":"git_note *","comment":"","name":"note"}],"rawComments":"\n Get the note object OID\n\n @param note\n @return the note object OID\n\n","lineto":51,"description":"Get the note object OID"},"git_tree_entry_attributes":{"return":{"type":"unsigned int","comment":"attributes as an integer"},"group":"tree","file":"tree.h","sig":"const git_tree_entry *","comments":"","argline":"const git_tree_entry *entry","line":106,"args":[{"type":"const git_tree_entry *","comment":"a tree entry","name":"entry"}],"rawComments":"\n Get the UNIX file attributes of a tree entry\n\n @param entry a tree entry\n @return attributes as an integer\n\n","lineto":112,"description":"Get the UNIX file attributes of a tree entry"},"git_revwalk_push_ref":{"return":{"type":"int","comment":"0 or an error code"},"group":"revwalk","file":"revwalk.h","sig":"git_revwalk *::const char *","comments":"The reference must point to a commit.","argline":"git_revwalk *walk, const char *refname","line":166,"args":[{"type":"git_revwalk *","comment":"the walker being used for the traversal","name":"walk"},{"type":"const char *","comment":"the referece to push","name":"refname"}],"rawComments":"\n Push the OID pointed to by a reference\n\n The reference must point to a commit.\n\n @param walk the walker being used for the traversal\n @param refname the referece to push\n @return 0 or an error code\n\n","lineto":175,"description":"Push the OID pointed to by a reference"},"git_reference_set_target":{"return":{"type":"int","comment":"0 or an error code"},"group":"reference","file":"refs.h","sig":"git_reference *::const char *","comments":"The reference must be a symbolic reference, otherwise\n this method will fail.\n\n The reference will be automatically updated in\n memory and on disk.","argline":"git_reference *ref, const char *target","line":152,"args":[{"type":"git_reference *","comment":"The reference","name":"ref"},{"type":"const char *","comment":"The new target for the reference","name":"target"}],"rawComments":"\n Set the symbolic target of a reference.\n\n The reference must be a symbolic reference, otherwise\n this method will fail.\n\n The reference will be automatically updated in\n memory and on disk.\n\n @param ref The reference\n @param target The new target for the reference\n @return 0 or an error code\n\n","lineto":165,"description":"Set the symbolic target of a reference."},"git_branch_list":{"return":{"type":"int","comment":"0 or an error code."},"group":"branch","file":"branch.h","sig":"git_strarray *::git_repository *::unsigned int","comments":"The string array will be filled with the names of the\n matching branches; these values are owned by the user and\n should be free'd manually when no longer needed, using\n `git_strarray_free`.","argline":"git_strarray *branch_names, git_repository *repo, unsigned int list_flags","line":74,"args":[{"type":"git_strarray *","comment":"Pointer to a git_strarray structure where the branch names will be stored.","name":"branch_names"},{"type":"git_repository *","comment":"Repository where to find the branches.","name":"repo"},{"type":"unsigned int","comment":"Filtering flags for the branch listing. Valid values are GIT_BRANCH_LOCAL, GIT_BRANCH_REMOTE or a combination of the two.","name":"list_flags"}],"rawComments":"\n Fill a list with all the branches in the Repository\n\n The string array will be filled with the names of the\n matching branches; these values are owned by the user and\n should be free'd manually when no longer needed, using\n `git_strarray_free`.\n\n @param branch_names Pointer to a git_strarray structure\n where the branch names will be stored.\n\n @param repo Repository where to find the branches.\n\n @param list_flags Filtering flags for the branch\n listing. Valid values are GIT_BRANCH_LOCAL, GIT_BRANCH_REMOTE\n or a combination of the two.\n\n @return 0 or an error code.\n\n","lineto":96,"description":"Fill a list with all the branches in the Repository"},"git_index_entry_stage":{"return":{"type":"int","comment":""},"group":"index","file":"index.h","sig":"const git_index_entry *","comments":"This entry is calculated from the entrie's flag\n attribute like this:\n\n\t(entry->flags & GIT_IDXENTRY_STAGEMASK) >> GIT_IDXENTRY_STAGESHIFT\n\n @returns the stage number","argline":"const git_index_entry *entry","line":295,"args":[{"type":"const git_index_entry *","comment":"The entry","name":"entry"}],"rawComments":"\n Return the stage number from a git index entry\n\n This entry is calculated from the entrie's flag\n attribute like this:\n\n\t(entry->flags & GIT_IDXENTRY_STAGEMASK) >> GIT_IDXENTRY_STAGESHIFT\n\n @param entry The entry\n @returns the stage number\n\n","lineto":306,"description":"Return the stage number from a git index entry"},"git_tree_get_subtree":{"return":{"type":"int","comment":"0 on success; GIT_ENOTFOUND if the path does not lead to a subtree"},"group":"tree","file":"tree.h","sig":"git_tree **::git_tree *::const char *","comments":"The returned tree is owned by the repository and\n should be closed with the `git_object_free` method.","argline":"git_tree **subtree, git_tree *root, const char *subtree_path","line":271,"args":[{"type":"git_tree **","comment":"Pointer where to store the subtree","name":"subtree"},{"type":"git_tree *","comment":"A previously loaded tree which will be the root of the relative path","name":"root"},{"type":"const char *","comment":"Path to the contained subtree","name":"subtree_path"}],"rawComments":"\n Retrieve a subtree contained in a tree, given its\n relative path.\n\n The returned tree is owned by the repository and\n should be closed with the `git_object_free` method.\n\n @param subtree Pointer where to store the subtree\n @param root A previously loaded tree which will be the root of the relative path\n @param subtree_path Path to the contained subtree\n @return 0 on success; GIT_ENOTFOUND if the path does not lead to a subtree\n\n","lineto":283,"description":"Retrieve a subtree contained in a tree, given its relative path."},"git_reference_set_oid":{"return":{"type":"int","comment":"0 or an error code"},"group":"reference","file":"refs.h","sig":"git_reference *::const git_oid *","comments":"The reference must be a direct reference, otherwise\n this method will fail.\n\n The reference will be automatically updated in\n memory and on disk.","argline":"git_reference *ref, const git_oid *id","line":167,"args":[{"type":"git_reference *","comment":"The reference","name":"ref"},{"type":"const git_oid *","comment":"The new target OID for the reference","name":"id"}],"rawComments":"\n Set the OID target of a reference.\n\n The reference must be a direct reference, otherwise\n this method will fail.\n\n The reference will be automatically updated in\n memory and on disk.\n\n @param ref The reference\n @param id The new target OID for the reference\n @return 0 or an error code\n\n","lineto":180,"description":"Set the OID target of a reference."},"git_index_write":{"return":{"type":"int","comment":"0 or an error code"},"group":"index","file":"index.h","sig":"git_index *","comments":"","argline":"git_index *index","line":138,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"}],"rawComments":"\n Write an existing index object from memory back to disk\n using an atomic file lock.\n\n @param index an existing index object\n @return 0 or an error code\n\n","lineto":145,"description":"Write an existing index object from memory back to disk using an atomic file lock."},"giterr_clear":{"return":{"type":"void","comment":""},"group":"giterr","file":"errors.h","sig":"","comments":"","argline":"void","line":101,"args":[{"type":"","comment":"","name":"void"}],"rawComments":"\n Clear the last library error that occurred for this thread.\n\n","lineto":104,"description":"Clear the last library error that occurred for this thread."},"git_treebuilder_get":{"return":{"type":"const git_tree_entry *","comment":"pointer to the entry; NULL if not found"},"group":"treebuilder","file":"tree.h","sig":"git_treebuilder *::const char *","comments":"The returned entry is owned by the builder and should\n not be freed manually.","argline":"git_treebuilder *bld, const char *filename","line":203,"args":[{"type":"git_treebuilder *","comment":"Tree builder","name":"bld"},{"type":"const char *","comment":"Name of the entry","name":"filename"}],"rawComments":"\n Get an entry from the builder from its filename\n\n The returned entry is owned by the builder and should\n not be freed manually.\n\n @param bld Tree builder\n @param filename Name of the entry\n @return pointer to the entry; NULL if not found\n\n","lineto":213,"description":"Get an entry from the builder from its filename"},"git_commit_time_offset":{"return":{"type":"int","comment":"positive or negative timezone offset, in minutes from UTC"},"group":"commit","file":"commit.h","sig":"git_commit *","comments":"","argline":"git_commit *commit","line":109,"args":[{"type":"git_commit *","comment":"a previously loaded commit.","name":"commit"}],"rawComments":"\n Get the commit timezone offset (i.e. committer's preferred timezone) of a commit.\n\n @param commit a previously loaded commit.\n @return positive or negative timezone offset, in minutes from UTC\n\n","lineto":115,"description":"Get the commit timezone offset (i.e. committer's preferred timezone) of a commit."},"git_oid_shorten_new":{"return":{"type":"git_oid_shorten *","comment":"a `git_oid_shorten` instance, NULL if OOM"},"group":"oid","file":"oid.h","sig":"size_t","comments":"The OID shortener is used to process a list of OIDs\n in text form and return the shortest length that would\n uniquely identify all of them.\n\n E.g. look at the result of `git log --abbrev`.","argline":"size_t min_length","line":172,"args":[{"type":"size_t","comment":"The minimal length for all identifiers, which will be used even if shorter OIDs would still be unique.","name":"min_length"}],"rawComments":"\n Create a new OID shortener.\n\n The OID shortener is used to process a list of OIDs\n in text form and return the shortest length that would\n uniquely identify all of them.\n\n E.g. look at the result of `git log --abbrev`.\n\n @param min_length The minimal length for all identifiers,\n\t\twhich will be used even if shorter OIDs would still\n\t\tbe unique.\n\t@return a `git_oid_shorten` instance, NULL if OOM\n\n","lineto":186,"description":"Create a new OID shortener."},"git_index_free":{"examples":{"showindex.c":["ex/v0.17.0/showindex.html#git_index_free-2"],"general.c":["ex/v0.17.0/general.html#git_index_free-16"]},"return":{"type":"void","comment":""},"group":"index","file":"index.h","sig":"git_index *","comments":"","argline":"git_index *index","line":122,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"}],"rawComments":"\n Free an existing index object.\n\n @param index an existing index object\n\n","lineto":127,"description":"Free an existing index object."},"git_odb_open":{"return":{"type":"int","comment":"0 or an error code"},"group":"odb","file":"odb.h","sig":"git_odb **::const char *","comments":"- git_odb_backend_loose: read and write loose object files\n\t\tfrom disk, assuming `objects_dir` as the Objects folder\n\n\t- git_odb_backend_pack: read objects from packfiles,\n\t\tassuming `objects_dir` as the Objects folder which\n\t\tcontains a 'pack/' folder with the corresponding data","argline":"git_odb **out, const char *objects_dir","line":36,"args":[{"type":"git_odb **","comment":"location to store the database pointer, if opened. Set to NULL if the open failed.","name":"out"},{"type":"const char *","comment":"path of the backends' \"objects\" directory.","name":"objects_dir"}],"rawComments":"\n Create a new object database and automatically add\n the two default backends:\n\n\t- git_odb_backend_loose: read and write loose object files\n\t\tfrom disk, assuming `objects_dir` as the Objects folder\n\n\t- git_odb_backend_pack: read objects from packfiles,\n\t\tassuming `objects_dir` as the Objects folder which\n\t\tcontains a 'pack/' folder with the corresponding data\n\n @param out location to store the database pointer, if opened.\n\t\t\tSet to NULL if the open failed.\n @param objects_dir path of the backends' \"objects\" directory.\n @return 0 or an error code\n\n","lineto":52,"description":"Create a new object database and automatically add the two default backends:"},"git_remote_set_pushspec":{"return":{"type":"int","comment":"0 or an error value"},"group":"remote","file":"remote.h","sig":"git_remote *::const char *","comments":"@apram spec the new push refspec","argline":"git_remote *remote, const char *spec","line":99,"args":[{"type":"git_remote *","comment":"the remote","name":"remote"},{"type":"const char *","comment":"","name":"spec"}],"rawComments":"\n Set the remote's push refspec\n\n @param remote the remote\n @apram spec the new push refspec\n @return 0 or an error value\n\n","lineto":106,"description":"Set the remote's push refspec"},"git_tree_create_fromindex":{"return":{"type":"int","comment":"0 or an error code"},"group":"tree","file":"tree.h","sig":"git_oid *::git_index *","comments":"This method will scan the index and write a representation\n of its current state back to disk; it recursively creates\n tree objects for each of the subtrees stored in the index,\n but only returns the OID of the root tree. This is the OID\n that can be used e.g. to create a commit.\n\n The index instance cannot be bare, and needs to be associated\n to an existing repository.","argline":"git_oid *oid, git_index *index","line":148,"args":[{"type":"git_oid *","comment":"Pointer where to store the written tree","name":"oid"},{"type":"git_index *","comment":"Index to write","name":"index"}],"rawComments":"\n Write a tree to the ODB from the index file\n\n This method will scan the index and write a representation\n of its current state back to disk; it recursively creates\n tree objects for each of the subtrees stored in the index,\n but only returns the OID of the root tree. This is the OID\n that can be used e.g. to create a commit.\n\n The index instance cannot be bare, and needs to be associated\n to an existing repository.\n\n @param oid Pointer where to store the written tree\n @param index Index to write\n @return 0 or an error code\n\n","lineto":164,"description":"Write a tree to the ODB from the index file"},"git_tag_delete":{"return":{"type":"int","comment":"0 or an error code"},"group":"tag","file":"tag.h","sig":"git_repository *::const char *","comments":"","argline":"git_repository *repo, const char *tag_name","line":226,"args":[{"type":"git_repository *","comment":"Repository where lives the tag","name":"repo"},{"type":"const char *","comment":"Name of the tag to be deleted; this name is validated for consistency.","name":"tag_name"}],"rawComments":"\n Delete an existing tag reference.\n\n @param repo Repository where lives the tag\n\n @param tag_name Name of the tag to be deleted;\n this name is validated for consistency.\n\n @return 0 or an error code\n\n","lineto":238,"description":"Delete an existing tag reference."},"git_tag_type":{"examples":{"general.c":["ex/v0.17.0/general.html#git_tag_type-17"]},"return":{"type":"git_otype","comment":"type of the tagged object"},"group":"tag","file":"tag.h","sig":"git_tag *","comments":"","argline":"git_tag *tag","line":100,"args":[{"type":"git_tag *","comment":"a previously loaded tag.","name":"tag"}],"rawComments":"\n Get the type of a tag's tagged object\n\n @param tag a previously loaded tag.\n @return type of the tagged object\n\n","lineto":106,"description":"Get the type of a tag's tagged object"},"git_remote_valid_url":{"return":{"type":"int","comment":""},"group":"remote","file":"remote.h","sig":"const char *","comments":"@param tranport the url to check\n @param 1 if the url is valid, 0 otherwise","argline":"const char *url","line":195,"args":[{"type":"const char *","comment":"","name":"url"}],"rawComments":"\n Return whether a string is a valid remote URL\n\n @param tranport the url to check\n @param 1 if the url is valid, 0 otherwise\n\n","lineto":201,"description":"Return whether a string is a valid remote URL"},"git_oid_ncmp":{"return":{"type":"int","comment":"0 in case of a match"},"group":"oid","file":"oid.h","sig":"const git_oid *::const git_oid *::unsigned int","comments":"","argline":"const git_oid *a, const git_oid *b, unsigned int len","line":141,"args":[{"type":"const git_oid *","comment":"first oid structure.","name":"a"},{"type":"const git_oid *","comment":"second oid structure.","name":"b"},{"type":"unsigned int","comment":"the number of hex chars to compare","name":"len"}],"rawComments":"\n Compare the first 'len' hexadecimal characters (packets of 4 bits)\n of two oid structures.\n\n @param a first oid structure.\n @param b second oid structure.\n @param len the number of hex chars to compare\n @return 0 in case of a match\n\n","lineto":150,"description":"Compare the first 'len' hexadecimal characters (packets of 4 bits) of two oid structures."},"git_repository_workdir":{"return":{"type":"const char *","comment":"the path to the working dir, if it exists"},"group":"repository","file":"repository.h","sig":"git_repository *","comments":"If the repository is bare, this function will always return\n NULL.","argline":"git_repository *repo","line":173,"args":[{"type":"git_repository *","comment":"A repository object","name":"repo"}],"rawComments":"\n Get the path of the working directory for this repository\n\n If the repository is bare, this function will always return\n NULL.\n\n @param repo A repository object\n @return the path to the working dir, if it exists\n\n","lineto":182,"description":"Get the path of the working directory for this repository"},"git_oid_allocfmt":{"return":{"type":"char *","comment":"the c-string; NULL if memory is exhausted. Caller must deallocate the string with git__free()."},"group":"oid","file":"oid.h","sig":"const git_oid *","comments":"","argline":"const git_oid *oid","line":98,"args":[{"type":"const git_oid *","comment":"the oid structure to format","name":"oid"}],"rawComments":"\n Format a git_oid into a newly allocated c-string.\n\n @param oid the oid structure to format\n @return the c-string; NULL if memory is exhausted. Caller must\n\t\t\tdeallocate the string with git__free().\n\n","lineto":105,"description":"Format a git_oid into a newly allocated c-string."},"git_index_read_tree":{"return":{"type":"int","comment":"0 or an error code"},"group":"index","file":"index.h","sig":"git_index *::git_tree *","comments":"The current index contents will be replaced by the specified tree.","argline":"git_index *index, git_tree *tree","line":308,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"},{"type":"git_tree *","comment":"tree to read","name":"tree"}],"rawComments":"\n Read a tree into the index file\n\n The current index contents will be replaced by the specified tree.\n\n @param index an existing index object\n @param tree tree to read\n @return 0 or an error code\n\n","lineto":317,"description":"Read a tree into the index file"},"git_odb_object_size":{"examples":{"general.c":["ex/v0.17.0/general.html#git_odb_object_size-18"]},"return":{"type":"size_t","comment":"the size"},"group":"odb","file":"odb.h","sig":"git_odb_object *","comments":"This is the real size of the `data` buffer, not the\n actual size of the object.","argline":"git_odb_object *object","line":310,"args":[{"type":"git_odb_object *","comment":"the object","name":"object"}],"rawComments":"\n Return the size of an ODB object\n\n This is the real size of the `data` buffer, not the\n actual size of the object.\n\n @param object the object\n @return the size\n\n","lineto":319,"description":"Return the size of an ODB object"},"git_index_remove":{"return":{"type":"int","comment":"0 or an error code"},"group":"index","file":"index.h","sig":"git_index *::int","comments":"","argline":"git_index *index, int position","line":231,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"},{"type":"int","comment":"position of the entry to remove","name":"position"}],"rawComments":"\n Remove an entry from the index\n\n @param index an existing index object\n @param position position of the entry to remove\n @return 0 or an error code\n\n","lineto":238,"description":"Remove an entry from the index"},"__attribute__":{"return":{"type":"","comment":""},"file":"common.h","sig":"","comments":"","argline":"(visibility(\"default\"))","line":29,"args":[{"type":"","comment":"","name":"(visibility(\"default\"))"}],"rawComments":" Declare a public function exported for application use. ","lineto":33,"description":"Declare a public function exported for application use."},"git_remote_download":{"examples":{"network/fetch.c":["ex/v0.17.0/fetch.html#git_remote_download-2"]},"return":{"type":"int","comment":"0 or an error code"},"group":"remote","file":"remote.h","sig":"git_remote *::git_off_t *::git_indexer_stats *","comments":"Negotiate what objects should be downloaded and download the\n packfile with those objects. The packfile is downloaded with a\n temporary filename, as it's final name is not known yet. If there\n was no packfile needed (all the objects were available locally),\n filename will be NULL and the function will return success.\n\n @param filename where to store the temproray filename","argline":"git_remote *remote, git_off_t *bytes, git_indexer_stats *stats","line":142,"args":[{"type":"git_remote *","comment":"the remote to download from","name":"remote"},{"type":"git_off_t *","comment":"","name":"bytes"},{"type":"git_indexer_stats *","comment":"","name":"stats"}],"rawComments":"\n Download the packfile\n\n Negotiate what objects should be downloaded and download the\n packfile with those objects. The packfile is downloaded with a\n temporary filename, as it's final name is not known yet. If there\n was no packfile needed (all the objects were available locally),\n filename will be NULL and the function will return success.\n\n @param remote the remote to download from\n @param filename where to store the temproray filename\n @return 0 or an error code\n\n","lineto":155,"description":"Download the packfile"},"git_oid_cpy":{"return":{"type":"void","comment":""},"group":"oid","file":"oid.h","sig":"git_oid *::const git_oid *","comments":"","argline":"git_oid *out, const git_oid *src","line":124,"args":[{"type":"git_oid *","comment":"oid structure the result is written into.","name":"out"},{"type":"const git_oid *","comment":"oid structure to copy from.","name":"src"}],"rawComments":"\n Copy an oid from one structure to another.\n\n @param out oid structure the result is written into.\n @param src oid structure to copy from.\n\n","lineto":130,"description":"Copy an oid from one structure to another."},"git_note_remove":{"return":{"type":"int","comment":"0 or an error code"},"group":"note","file":"notes.h","sig":"git_repository *::const char *::git_signature *::git_signature *::const git_oid *","comments":"","argline":"git_repository *repo, const char *notes_ref, git_signature *author, git_signature *committer, const git_oid *oid","line":73,"args":[{"type":"git_repository *","comment":"the Git repository","name":"repo"},{"type":"const char *","comment":"OID reference to use (optional); defaults to \"refs/notes/commits\"","name":"notes_ref"},{"type":"git_signature *","comment":"signature of the notes commit author","name":"author"},{"type":"git_signature *","comment":"signature of the notes commit committer","name":"committer"},{"type":"const git_oid *","comment":"the oid which note's to be removed","name":"oid"}],"rawComments":"\n Remove the note for an object\n\n @param repo the Git repository\n @param notes_ref OID reference to use (optional); defaults to \"refs/notes/commits\"\n @param author signature of the notes commit author\n @param committer signature of the notes commit committer\n @param oid the oid which note's to be removed\n\n @return 0 or an error code\n\n","lineto":86,"description":"Remove the note for an object"},"git_oid_fromstrn":{"examples":{"diff.c":["ex/v0.17.0/diff.html#git_oid_fromstrn-4"]},"return":{"type":"int","comment":"0 or an error code"},"group":"oid","file":"oid.h","sig":"git_oid *::const char *::size_t","comments":"If N is odd, N-1 characters will be parsed instead.\n The remaining space in the git_oid will be set to zero.","argline":"git_oid *out, const char *str, size_t length","line":50,"args":[{"type":"git_oid *","comment":"oid structure the result is written into.","name":"out"},{"type":"const char *","comment":"input hex string of at least size `length`","name":"str"},{"type":"size_t","comment":"length of the input string","name":"length"}],"rawComments":"\n Parse N characters of a hex formatted object id into a git_oid\n\n If N is odd, N-1 characters will be parsed instead.\n The remaining space in the git_oid will be set to zero.\n\n @param out oid structure the result is written into.\n @param str input hex string of at least size `length`\n @param length length of the input string\n @return 0 or an error code\n\n","lineto":61,"description":"Parse N characters of a hex formatted object id into a git_oid"},"git_submodule_lookup":{"return":{"type":"int","comment":"0 on success, GIT_ENOTFOUND if submodule does not exist, -1 on error"},"group":"submodule","file":"submodule.h","sig":"git_submodule **::git_repository *::const char *","comments":"Given either the submodule name or path (they are ususally the same),\n this returns a structure describing the submodule. If the submodule\n does not exist, this will return GIT_ENOTFOUND and set the submodule\n pointer to NULL.","argline":"git_submodule **submodule, git_repository *repo, const char *name","line":83,"args":[{"type":"git_submodule **","comment":"Pointer to submodule description object pointer..","name":"submodule"},{"type":"git_repository *","comment":"The repository.","name":"repo"},{"type":"const char *","comment":"The name of the submodule. Trailing slashes will be ignored.","name":"name"}],"rawComments":"\n Lookup submodule information by name or path.\n\n Given either the submodule name or path (they are ususally the same),\n this returns a structure describing the submodule. If the submodule\n does not exist, this will return GIT_ENOTFOUND and set the submodule\n pointer to NULL.\n\n @param submodule Pointer to submodule description object pointer..\n @param repo The repository.\n @param name The name of the submodule. Trailing slashes will be ignored.\n @return 0 on success, GIT_ENOTFOUND if submodule does not exist, -1 on error\n\n","lineto":99,"description":"Lookup submodule information by name or path."},"git_revwalk_hide_ref":{"return":{"type":"int","comment":"0 or an error code"},"group":"revwalk","file":"revwalk.h","sig":"git_revwalk *::const char *","comments":"The reference must point to a commit.","argline":"git_revwalk *walk, const char *refname","line":177,"args":[{"type":"git_revwalk *","comment":"the walker being used for the traversal","name":"walk"},{"type":"const char *","comment":"the referece to hide","name":"refname"}],"rawComments":"\n Hide the OID pointed to by a reference\n\n The reference must point to a commit.\n\n @param walk the walker being used for the traversal\n @param refname the referece to hide\n @return 0 or an error code\n\n","lineto":186,"description":"Hide the OID pointed to by a reference"},"git_repository_set_index":{"return":{"type":"void","comment":""},"group":"repository","file":"repository.h","sig":"git_repository *::git_index *","comments":"This index will be used for all index-related operations\n involving this repository.\n\n The repository will keep a reference to the index file;\n the user must still free the index after setting it\n to the repository, or it will leak.","argline":"git_repository *repo, git_index *index","line":287,"args":[{"type":"git_repository *","comment":"A repository object","name":"repo"},{"type":"git_index *","comment":"An index object","name":"index"}],"rawComments":"\n Set the index file for this repository\n\n This index will be used for all index-related operations\n involving this repository.\n\n The repository will keep a reference to the index file;\n the user must still free the index after setting it\n to the repository, or it will leak.\n\n @param repo A repository object\n @param index An index object\n\n","lineto":300,"description":"Set the index file for this repository"},"git_remote_name":{"return":{"type":"const char *","comment":"a pointer to the name"},"group":"remote","file":"remote.h","sig":"git_remote *","comments":"","argline":"git_remote *remote","line":66,"args":[{"type":"git_remote *","comment":"the remote","name":"remote"}],"rawComments":"\n Get the remote's name\n\n @param remote the remote\n @return a pointer to the name\n\n","lineto":72,"description":"Get the remote's name"},"git_note_read":{"return":{"type":"int","comment":"0 or an error code"},"group":"note","file":"notes.h","sig":"git_note **::git_repository *::const char *::const git_oid *","comments":"The note must be freed manually by the user.","argline":"git_note **note, git_repository *repo, const char *notes_ref, const git_oid *oid","line":21,"args":[{"type":"git_note **","comment":"the note; NULL in case of error","name":"note"},{"type":"git_repository *","comment":"the Git repository","name":"repo"},{"type":"const char *","comment":"OID reference to use (optional); defaults to \"refs/notes/commits\"","name":"notes_ref"},{"type":"const git_oid *","comment":"OID of the object","name":"oid"}],"rawComments":"\n Read the note for an object\n\n The note must be freed manually by the user.\n\n @param note the note; NULL in case of error\n @param repo the Git repository\n @param notes_ref OID reference to use (optional); defaults to \"refs/notes/commits\"\n @param oid OID of the object\n\n @return 0 or an error code\n\n","lineto":34,"description":"Read the note for an object"},"git_oid_cmp":{"return":{"type":"int","comment":"<0, 0, >0 if a < b, a == b, a > b."},"group":"oid","file":"oid.h","sig":"const git_oid *::const git_oid *","comments":"","argline":"const git_oid *a, const git_oid *b","line":132,"args":[{"type":"const git_oid *","comment":"first oid structure.","name":"a"},{"type":"const git_oid *","comment":"second oid structure.","name":"b"}],"rawComments":"\n Compare two oid structures.\n\n @param a first oid structure.\n @param b second oid structure.\n @return <0, 0, >0 if a < b, a == b, a > b.\n\n","lineto":139,"description":"Compare two oid structures."},"git_reflog_entry_oidnew":{"return":{"type":"const git_oid *","comment":"the new oid at this time"},"group":"reflog","file":"reflog.h","sig":"const git_reflog_entry *","comments":"","argline":"const git_reflog_entry *entry","line":95,"args":[{"type":"const git_reflog_entry *","comment":"a reflog entry","name":"entry"}],"rawComments":"\n Get the new oid\n\n @param entry a reflog entry\n @return the new oid at this time\n\n","lineto":101,"description":"Get the new oid"},"git_index_get_unmerged_byindex":{"return":{"type":"const git_index_entry_unmerged *","comment":"a pointer to the unmerged entry; NULL if out of bounds"},"group":"index","file":"index.h","sig":"git_index *::unsigned int","comments":"The returned entry is read-only and should not be modified\n of freed by the caller.","argline":"git_index *index, unsigned int n","line":283,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"},{"type":"unsigned int","comment":"the position of the entry","name":"n"}],"rawComments":"\n Get an unmerged entry from the index.\n\n The returned entry is read-only and should not be modified\n of freed by the caller.\n\n @param index an existing index object\n @param n the position of the entry\n @return a pointer to the unmerged entry; NULL if out of bounds\n\n","lineto":293,"description":"Get an unmerged entry from the index."},"git_threads_shutdown":{"return":{"type":"void","comment":""},"group":"threads","file":"threads.h","sig":"","comments":"If libgit2 has been built with GIT_THREADS\n on, this function must be called before shutting\n down the library.\n\n If libgit2 has been built without GIT_THREADS\n support, this function is a no-op.","argline":"void","line":33,"args":[{"type":"","comment":"","name":"void"}],"rawComments":"\n Shutdown the threading system.\n\n If libgit2 has been built with GIT_THREADS\n on, this function must be called before shutting\n down the library.\n\n If libgit2 has been built without GIT_THREADS\n support, this function is a no-op.\n\n","lineto":43,"description":"Shutdown the threading system."},"git_tag_list":{"return":{"type":"int","comment":"0 or an error code"},"group":"tag","file":"tag.h","sig":"git_strarray *::git_repository *","comments":"The string array will be filled with the names of the\n matching tags; these values are owned by the user and\n should be free'd manually when no longer needed, using\n `git_strarray_free`.","argline":"git_strarray *tag_names, git_repository *repo","line":240,"args":[{"type":"git_strarray *","comment":"Pointer to a git_strarray structure where the tag names will be stored","name":"tag_names"},{"type":"git_repository *","comment":"Repository where to find the tags","name":"repo"}],"rawComments":"\n Fill a list with all the tags in the Repository\n\n The string array will be filled with the names of the\n matching tags; these values are owned by the user and\n should be free'd manually when no longer needed, using\n `git_strarray_free`.\n\n @param tag_names Pointer to a git_strarray structure where\n\t\tthe tag names will be stored\n @param repo Repository where to find the tags\n @return 0 or an error code\n\n","lineto":255,"description":"Fill a list with all the tags in the Repository"},"git_reflog_rename":{"return":{"type":"int","comment":"0 or an error code"},"group":"reflog","file":"reflog.h","sig":"git_reference *::const char *","comments":"","argline":"git_reference *ref, const char *new_name","line":53,"args":[{"type":"git_reference *","comment":"the reference","name":"ref"},{"type":"const char *","comment":"the new name of the reference","name":"new_name"}],"rawComments":"\n Rename the reflog for the given reference\n\n @param ref the reference\n @param new_name the new name of the reference\n @return 0 or an error code\n\n","lineto":60,"description":"Rename the reflog for the given reference"},"git_repository_is_bare":{"return":{"type":"int","comment":"1 if the repository is bare, 0 otherwise."},"group":"repository","file":"repository.h","sig":"git_repository *","comments":"","argline":"git_repository *repo","line":201,"args":[{"type":"git_repository *","comment":"Repo to test","name":"repo"}],"rawComments":"\n Check if a repository is bare\n\n @param repo Repo to test\n @return 1 if the repository is bare, 0 otherwise.\n\n","lineto":207,"description":"Check if a repository is bare"},"git_tree_entry_name":{"examples":{"general.c":["ex/v0.17.0/general.html#git_tree_entry_name-19","ex/v0.17.0/general.html#git_tree_entry_name-20"]},"return":{"type":"const char *","comment":"the name of the file"},"group":"tree","file":"tree.h","sig":"const git_tree_entry *","comments":"","argline":"const git_tree_entry *entry","line":114,"args":[{"type":"const git_tree_entry *","comment":"a tree entry","name":"entry"}],"rawComments":"\n Get the filename of a tree entry\n\n @param entry a tree entry\n @return the name of the file\n\n","lineto":120,"description":"Get the filename of a tree entry"},"git_tree_entry_byindex":{"examples":{"general.c":["ex/v0.17.0/general.html#git_tree_entry_byindex-21"]},"return":{"type":"const git_tree_entry *","comment":"the tree entry; NULL if not found"},"group":"tree","file":"tree.h","sig":"git_tree *::unsigned int","comments":"","argline":"git_tree *tree, unsigned int idx","line":97,"args":[{"type":"git_tree *","comment":"a previously loaded tree.","name":"tree"},{"type":"unsigned int","comment":"the position in the entry list","name":"idx"}],"rawComments":"\n Lookup a tree entry by its position in the tree\n\n @param tree a previously loaded tree.\n @param idx the position in the entry list\n @return the tree entry; NULL if not found\n\n","lineto":104,"description":"Lookup a tree entry by its position in the tree"},"git_submodule_foreach":{"return":{"type":"int","comment":"0 on success, -1 on error, or non-zero return value of callback"},"group":"submodule","file":"submodule.h","sig":"git_repository *::int(*)(const char *name, void *payload)::void *","comments":"","argline":"git_repository *repo, int (*callback)(const char *name, void *payload), void *payload","line":69,"args":[{"type":"git_repository *","comment":"The repository","name":"repo"},{"type":"int(*)(const char *name, void *payload)","comment":"Function to be called with the name of each submodule. Return a non-zero value to terminate the iteration.","name":"callback"},{"type":"void *","comment":"Extra data to pass to callback","name":"payload"}],"rawComments":"\n Iterate over all submodules of a repository.\n\n @param repo The repository\n @param callback Function to be called with the name of each submodule.\n Return a non-zero value to terminate the iteration.\n @param payload Extra data to pass to callback\n @return 0 on success, -1 on error, or non-zero return value of callback\n\n","lineto":81,"description":"Iterate over all submodules of a repository."},"git_reference_create_symbolic":{"return":{"type":"int","comment":"0 or an error code"},"group":"reference","file":"refs.h","sig":"git_reference **::git_repository *::const char *::const char *::int","comments":"The reference will be created in the repository and written\n to the disk.\n\n The generated reference must be freed by the user.\n\n If `force` is true and there already exists a reference\n with the same name, it will be overwritten.","argline":"git_reference **ref_out, git_repository *repo, const char *name, const char *target, int force","line":46,"args":[{"type":"git_reference **","comment":"Pointer to the newly created reference","name":"ref_out"},{"type":"git_repository *","comment":"Repository where that reference will live","name":"repo"},{"type":"const char *","comment":"The name of the reference","name":"name"},{"type":"const char *","comment":"The target of the reference","name":"target"},{"type":"int","comment":"Overwrite existing references","name":"force"}],"rawComments":"\n Create a new symbolic reference.\n\n The reference will be created in the repository and written\n to the disk.\n\n The generated reference must be freed by the user.\n\n If `force` is true and there already exists a reference\n with the same name, it will be overwritten.\n\n @param ref_out Pointer to the newly created reference\n @param repo Repository where that reference will live\n @param name The name of the reference\n @param target The target of the reference\n @param force Overwrite existing references\n @return 0 or an error code\n\n","lineto":64,"description":"Create a new symbolic reference."},"git_commit_tree_oid":{"return":{"type":"const git_oid *","comment":"the id of tree pointed to by commit."},"group":"commit","file":"commit.h","sig":"git_commit *","comments":"","argline":"git_commit *commit","line":142,"args":[{"type":"git_commit *","comment":"a previously loaded commit.","name":"commit"}],"rawComments":"\n Get the id of the tree pointed to by a commit. This differs from\n `git_commit_tree` in that no attempts are made to fetch an object\n from the ODB.\n\n @param commit a previously loaded commit.\n @return the id of tree pointed to by commit.\n\n","lineto":150,"description":"Get the id of the tree pointed to by a commit. This differs from `git_commit_tree` in that no attempts are made to fetch an object from the ODB."},"git_odb_exists":{"return":{"type":"int","comment":""},"group":"odb","file":"odb.h","sig":"git_odb *::const git_oid *","comments":"@return\n - 1, if the object was found\n - 0, otherwise","argline":"git_odb *db, const git_oid *id","line":164,"args":[{"type":"git_odb *","comment":"database to be searched for the given object.","name":"db"},{"type":"const git_oid *","comment":"the object to search for.","name":"id"}],"rawComments":"\n Determine if the given object can be found in the object database.\n\n @param db database to be searched for the given object.\n @param id the object to search for.\n @return\n - 1, if the object was found\n - 0, otherwise\n\n","lineto":173,"description":"Determine if the given object can be found in the object database."},"git_reference_owner":{"return":{"type":"git_repository *","comment":"a pointer to the repo"},"group":"reference","file":"refs.h","sig":"git_reference *","comments":"","argline":"git_reference *ref","line":144,"args":[{"type":"git_reference *","comment":"The reference","name":"ref"}],"rawComments":"\n Get the repository where a reference resides\n\n @param ref The reference\n @return a pointer to the repo\n\n","lineto":150,"description":"Get the repository where a reference resides"},"git_tag_target_oid":{"return":{"type":"const git_oid *","comment":"pointer to the OID"},"group":"tag","file":"tag.h","sig":"git_tag *","comments":"","argline":"git_tag *tag","line":92,"args":[{"type":"git_tag *","comment":"a previously loaded tag.","name":"tag"}],"rawComments":"\n Get the OID of the tagged object of a tag\n\n @param tag a previously loaded tag.\n @return pointer to the OID\n\n","lineto":98,"description":"Get the OID of the tagged object of a tag"},"git_odb_read_header":{"return":{"type":"int","comment":""},"group":"odb","file":"odb.h","sig":"size_t *::git_otype *::git_odb *::const git_oid *","comments":"The header includes the length and the type of an object.\n\n Note that most backends do not support reading only the header\n of an object, so the whole object will be read and then the\n header will be returned.\n\n @return\n - 0 if the object was read;\n - GIT_ENOTFOUND if the object is not in the database.","argline":"size_t *len_p, git_otype *type_p, git_odb *db, const git_oid *id","line":144,"args":[{"type":"size_t *","comment":"pointer where to store the length","name":"len_p"},{"type":"git_otype *","comment":"pointer where to store the type","name":"type_p"},{"type":"git_odb *","comment":"database to search for the object in.","name":"db"},{"type":"const git_oid *","comment":"identity of the object to read.","name":"id"}],"rawComments":"\n Read the header of an object from the database, without\n reading its full contents.\n\n The header includes the length and the type of an object.\n\n Note that most backends do not support reading only the header\n of an object, so the whole object will be read and then the\n header will be returned.\n\n @param len_p pointer where to store the length\n @param type_p pointer where to store the type\n @param db database to search for the object in.\n @param id identity of the object to read.\n @return\n - 0 if the object was read;\n - GIT_ENOTFOUND if the object is not in the database.\n\n","lineto":162,"description":"Read the header of an object from the database, without reading its full contents."},"git_commit_tree":{"examples":{"diff.c":["ex/v0.17.0/diff.html#git_commit_tree-5"]},"return":{"type":"int","comment":"0 or an error code"},"group":"commit","file":"commit.h","sig":"git_tree **::git_commit *","comments":"","argline":"git_tree **tree_out, git_commit *commit","line":133,"args":[{"type":"git_tree **","comment":"pointer where to store the tree object","name":"tree_out"},{"type":"git_commit *","comment":"a previously loaded commit.","name":"commit"}],"rawComments":"\n Get the tree pointed to by a commit.\n\n @param tree_out pointer where to store the tree object\n @param commit a previously loaded commit.\n @return 0 or an error code\n\n","lineto":140,"description":"Get the tree pointed to by a commit."},"git_indexer_stream_free":{"examples":{"network/index-pack.c":["ex/v0.17.0/index-pack.html#git_indexer_stream_free-1"]},"return":{"type":"void","comment":""},"group":"indexer","file":"indexer.h","sig":"git_indexer_stream *","comments":"","argline":"git_indexer_stream *idx","line":65,"args":[{"type":"git_indexer_stream *","comment":"the indexer to free","name":"idx"}],"rawComments":"\n Free the indexer and its resources\n\n @param idx the indexer to free\n\n","lineto":70,"description":"Free the indexer and its resources"},"git_indexer_stream_new":{"examples":{"network/index-pack.c":["ex/v0.17.0/index-pack.html#git_indexer_stream_new-2"]},"return":{"type":"int","comment":""},"group":"indexer","file":"indexer.h","sig":"git_indexer_stream **::const char *","comments":"@param path to the gitdir (metadata directory)","argline":"git_indexer_stream **out, const char *gitdir","line":28,"args":[{"type":"git_indexer_stream **","comment":"where to store the inexer instance","name":"out"},{"type":"const char *","comment":"","name":"gitdir"}],"rawComments":"\n Create a new streaming indexer instance\n\n @param out where to store the inexer instance\n @param path to the gitdir (metadata directory)\n\n","lineto":34,"description":"Create a new streaming indexer instance"},"git_repository_init":{"return":{"type":"int","comment":"0 or an error code"},"group":"repository","file":"repository.h","sig":"git_repository **::const char *::unsigned","comments":"TODO:\n\t- Reinit the repository","argline":"git_repository **repo_out, const char *path, unsigned is_bare","line":100,"args":[{"type":"git_repository **","comment":"pointer to the repo which will be created or reinitialized","name":"repo_out"},{"type":"const char *","comment":"the path to the repository","name":"path"},{"type":"unsigned","comment":"if true, a Git repository without a working directory is created at the pointed path. If false, provided path will be considered as the working directory into which the .git directory will be created.","name":"is_bare"}],"rawComments":"\n Creates a new Git repository in the given folder.\n\n TODO:\n\t- Reinit the repository\n\n @param repo_out pointer to the repo which will be created or reinitialized\n @param path the path to the repository\n @param is_bare if true, a Git repository without a working directory is created\n\t\tat the pointed path. If false, provided path will be considered as the working\n\t\tdirectory into which the .git directory will be created.\n\n @return 0 or an error code\n\n","lineto":114,"description":"Creates a new Git repository in the given folder."},"git_commit_create":{"return":{"type":"int","comment":"0 or an error code The created commit will be written to the Object Database and the given reference will be updated to point to it"},"group":"commit","file":"commit.h","sig":"git_oid *::git_repository *::const char *::const git_signature *::const git_signature *::const char *::const char *::const git_tree *::int::const git_commit *","comments":"The message will be cleaned up from excess whitespace\n it will be made sure that the last line ends with a '\\n'.","argline":"git_oid *oid, git_repository *repo, const char *update_ref, const git_signature *author, const git_signature *committer, const char *message_encoding, const char *message, const git_tree *tree, int parent_count, const git_commit *parents[]","line":181,"args":[{"type":"git_oid *","comment":"Pointer where to store the OID of the newly created commit","name":"oid"},{"type":"git_repository *","comment":"Repository where to store the commit","name":"repo"},{"type":"const char *","comment":"If not NULL, name of the reference that will be updated to point to this commit. If the reference is not direct, it will be resolved to a direct reference. Use \"HEAD\" to update the HEAD of the current branch and make it point to this commit. If the reference doesn't exist yet, it will be created.","name":"update_ref"},{"type":"const git_signature *","comment":"Signature representing the author and the authory time of this commit","name":"author"},{"type":"const git_signature *","comment":"Signature representing the committer and the commit time of this commit","name":"committer"},{"type":"const char *","comment":"The encoding for the message in the commit, represented with a standard encoding name. E.g. \"UTF-8\". If NULL, no encoding header is written and UTF-8 is assumed.","name":"message_encoding"},{"type":"const char *","comment":"Full message for this commit","name":"message"},{"type":"const git_tree *","comment":"An instance of a `git_tree` object that will be used as the tree for the commit. This tree object must also be owned by the given `repo`.","name":"tree"},{"type":"int","comment":"Number of parents for this commit","name":"parent_count"},{"type":"const git_commit *","comment":"Array of `parent_count` pointers to `git_commit` objects that will be used as the parents for this commit. This array may be NULL if `parent_count` is 0 (root commit). All the given commits must be owned by the `repo`.","name":"parents[]"}],"rawComments":"\n Create a new commit in the repository using `git_object`\n instances as parameters.\n\n The message will be cleaned up from excess whitespace\n it will be made sure that the last line ends with a '\\n'.\n\n @param oid Pointer where to store the OID of the\n\tnewly created commit\n\n @param repo Repository where to store the commit\n\n @param update_ref If not NULL, name of the reference that\n\twill be updated to point to this commit. If the reference\n\tis not direct, it will be resolved to a direct reference.\n\tUse \"HEAD\" to update the HEAD of the current branch and\n\tmake it point to this commit. If the reference doesn't\n\texist yet, it will be created.\n\n @param author Signature representing the author and the authory\n\ttime of this commit\n\n @param committer Signature representing the committer and the\n commit time of this commit\n\n @param message_encoding The encoding for the message in the\n commit, represented with a standard encoding name.\n E.g. \"UTF-8\". If NULL, no encoding header is written and\n UTF-8 is assumed.\n\n @param message Full message for this commit\n\n @param tree An instance of a `git_tree` object that will\n be used as the tree for the commit. This tree object must\n also be owned by the given `repo`.\n\n @param parent_count Number of parents for this commit\n\n @param parents[] Array of `parent_count` pointers to `git_commit`\n objects that will be used as the parents for this commit. This\n array may be NULL if `parent_count` is 0 (root commit). All the\n given commits must be owned by the `repo`.\n\n @return 0 or an error code\n\tThe created commit will be written to the Object Database and\n\tthe given reference will be updated to point to it\n\n","lineto":238,"description":"Create a new commit in the repository using `git_object` instances as parameters."},"git_blob_free":{"return":{"type":"void","comment":""},"group":"blob","file":"blob.h","sig":"git_blob *","comments":"This is a wrapper around git_object_free()\n\n IMPORTANT:\n It *is* necessary to call this method when you stop\n using a blob. Failure to do so will cause a memory leak.","argline":"git_blob *blob","line":54,"args":[{"type":"git_blob *","comment":"the blob to close","name":"blob"}],"rawComments":"\n Close an open blob\n\n This is a wrapper around git_object_free()\n\n IMPORTANT:\n It *is* necessary to call this method when you stop\n using a blob. Failure to do so will cause a memory leak.\n\n @param blob the blob to close\n\n","lineto":69,"description":"Close an open blob"},"git_remote_save":{"return":{"type":"int","comment":"0 or an error code"},"group":"remote","file":"remote.h","sig":"const git_remote *","comments":"","argline":"const git_remote *remote","line":58,"args":[{"type":"const git_remote *","comment":"the remote to save to config","name":"remote"}],"rawComments":"\n Save a remote to its repository's configuration\n\n @param remote the remote to save to config\n @return 0 or an error code\n\n","lineto":64,"description":"Save a remote to its repository's configuration"},"git_repository_open":{"examples":{"network/git2.c":["ex/v0.17.0/git2.html#git_repository_open-1"],"showindex.c":["ex/v0.17.0/showindex.html#git_repository_open-3"],"general.c":["ex/v0.17.0/general.html#git_repository_open-22","ex/v0.17.0/general.html#git_repository_open-23"],"diff.c":["ex/v0.17.0/diff.html#git_repository_open-6"]},"return":{"type":"int","comment":"0 or an error code"},"group":"repository","file":"repository.h","sig":"git_repository **::const char *","comments":"The 'path' argument must point to either a git repository\n folder, or an existing work dir.\n\n The method will automatically detect if 'path' is a normal\n or bare repository or fail is 'path' is neither.","argline":"git_repository **repository, const char *path","line":23,"args":[{"type":"git_repository **","comment":"pointer to the repo which will be opened","name":"repository"},{"type":"const char *","comment":"the path to the repository","name":"path"}],"rawComments":"\n Open a git repository.\n\n The 'path' argument must point to either a git repository\n folder, or an existing work dir.\n\n The method will automatically detect if 'path' is a normal\n or bare repository or fail is 'path' is neither.\n\n @param repository pointer to the repo which will be opened\n @param path the path to the repository\n @return 0 or an error code\n\n","lineto":36,"description":"Open a git repository."},"git_treebuilder_write":{"return":{"type":"int","comment":"0 or an error code"},"group":"treebuilder","file":"tree.h","sig":"git_oid *::git_repository *::git_treebuilder *","comments":"The tree builder will be written to the given `repo`, and\n it's identifying SHA1 hash will be stored in the `oid`\n pointer.","argline":"git_oid *oid, git_repository *repo, git_treebuilder *bld","line":257,"args":[{"type":"git_oid *","comment":"Pointer where to store the written OID","name":"oid"},{"type":"git_repository *","comment":"Repository where to store the object","name":"repo"},{"type":"git_treebuilder *","comment":"Tree builder to write","name":"bld"}],"rawComments":"\n Write the contents of the tree builder as a tree object\n\n The tree builder will be written to the given `repo`, and\n it's identifying SHA1 hash will be stored in the `oid`\n pointer.\n\n @param oid Pointer where to store the written OID\n @param repo Repository where to store the object\n @param bld Tree builder to write\n @return 0 or an error code\n\n","lineto":269,"description":"Write the contents of the tree builder as a tree object"},"git_tag_lookup":{"examples":{"general.c":["ex/v0.17.0/general.html#git_tag_lookup-24"]},"return":{"type":"int","comment":"0 or an error code"},"group":"tag","file":"tag.h","sig":"git_tag **::git_repository *::const git_oid *","comments":"","argline":"git_tag **tag, git_repository *repo, const git_oid *id","line":24,"args":[{"type":"git_tag **","comment":"pointer to the looked up tag","name":"tag"},{"type":"git_repository *","comment":"the repo to use when locating the tag.","name":"repo"},{"type":"const git_oid *","comment":"identity of the tag to locate.","name":"id"}],"rawComments":"\n Lookup a tag object from the repository.\n\n @param tag pointer to the looked up tag\n @param repo the repo to use when locating the tag.\n @param id identity of the tag to locate.\n @return 0 or an error code\n\n","lineto":35,"description":"Lookup a tag object from the repository."},"git_remote_free":{"examples":{"network/ls-remote.c":["ex/v0.17.0/ls-remote.html#git_remote_free-1","ex/v0.17.0/ls-remote.html#git_remote_free-2"],"network/fetch.c":["ex/v0.17.0/fetch.html#git_remote_free-3","ex/v0.17.0/fetch.html#git_remote_free-4"]},"return":{"type":"void","comment":""},"group":"remote","file":"remote.h","sig":"git_remote *","comments":"This also disconnects from the remote, if the connection\n has not been closed yet (using git_remote_disconnect).","argline":"git_remote *remote","line":177,"args":[{"type":"git_remote *","comment":"the remote to free","name":"remote"}],"rawComments":"\n Free the memory associated with a remote\n\n This also disconnects from the remote, if the connection\n has not been closed yet (using git_remote_disconnect).\n\n @param remote the remote to free\n\n","lineto":185,"description":"Free the memory associated with a remote"},"git_repository_set_workdir":{"return":{"type":"int","comment":"0, or an error code"},"group":"repository","file":"repository.h","sig":"git_repository *::const char *","comments":"The working directory doesn't need to be the same one\n that contains the `.git` folder for this repository.\n\n If this repository is bare, setting its working directory\n will turn it into a normal repository, capable of performing\n all the common workdir operations (checkout, status, index\n manipulation, etc).","argline":"git_repository *repo, const char *workdir","line":184,"args":[{"type":"git_repository *","comment":"A repository object","name":"repo"},{"type":"const char *","comment":"The path to a working directory","name":"workdir"}],"rawComments":"\n Set the path to the working directory for this repository\n\n The working directory doesn't need to be the same one\n that contains the `.git` folder for this repository.\n\n If this repository is bare, setting its working directory\n will turn it into a normal repository, capable of performing\n all the common workdir operations (checkout, status, index\n manipulation, etc).\n\n @param repo A repository object\n @param workdir The path to a working directory\n @return 0, or an error code\n\n","lineto":199,"description":"Set the path to the working directory for this repository"},"git_index_uniq":{"return":{"type":"void","comment":""},"group":"index","file":"index.h","sig":"git_index *","comments":"","argline":"git_index *index","line":157,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"}],"rawComments":"\n Remove all entries with equal path except last added\n\n @param index an existing index object\n\n","lineto":162,"description":"Remove all entries with equal path except last added"},"imaxdiv":{"return":{"type":"static _inline imaxdiv_t __cdecl","comment":""},"group":"inttypes","file":"inttypes.h","sig":"intmax_t::intmax_t denom) { imaxdiv_t result; result.quot = numer / denom; result.rem = numer % denom; if (numer < 0 && result.rem >","comments":"","argline":"intmax_t numer, intmax_t denom) { imaxdiv_t result; result.quot = numer / denom; result.rem = numer % denom; if (numer < 0 && result.rem > 0","line":274,"args":[{"type":"intmax_t","comment":"","name":"numer"},{"type":"intmax_t denom) { imaxdiv_t result; result.quot = numer / denom; result.rem = numer % denom; if (numer < 0 && result.rem >","comment":"","name":"0"}],"rawComments":"","lineto":287,"description":""},"git_config_add_file_ondisk":{"return":{"type":"int","comment":"0 or an error code"},"group":"config","file":"config.h","sig":"git_config *::const char *::int","comments":"The on-disk file pointed at by `path` will be opened and\n parsed; it's expected to be a native Git config file following\n the default Git config syntax (see man git-config).\n\n Note that the configuration object will free the file\n automatically.\n\n Further queries on this config object will access each\n of the config file instances in order (instances with\n a higher priority will be accessed first).","argline":"git_config *cfg, const char *path, int priority","line":134,"args":[{"type":"git_config *","comment":"the configuration to add the file to","name":"cfg"},{"type":"const char *","comment":"path to the configuration file (backend) to add","name":"path"},{"type":"int","comment":"the priority the backend should have","name":"priority"}],"rawComments":"\n Add an on-disk config file instance to an existing config\n\n The on-disk file pointed at by `path` will be opened and\n parsed; it's expected to be a native Git config file following\n the default Git config syntax (see man git-config).\n\n Note that the configuration object will free the file\n automatically.\n\n Further queries on this config object will access each\n of the config file instances in order (instances with\n a higher priority will be accessed first).\n\n @param cfg the configuration to add the file to\n @param path path to the configuration file (backend) to add\n @param priority the priority the backend should have\n @return 0 or an error code\n\n","lineto":153,"description":"Add an on-disk config file instance to an existing config"},"git_treebuilder_insert":{"return":{"type":"int","comment":"0 or an error code"},"group":"treebuilder","file":"tree.h","sig":"git_tree_entry **::git_treebuilder *::const char *::const git_oid *::unsigned int","comments":"Insert a new entry for `filename` in the builder with the\n given attributes.\n\n if an entry named `filename` already exists, its attributes\n will be updated with the given ones.\n\n The optional pointer `entry_out` can be used to retrieve a\n pointer to the newly created/updated entry.","argline":"git_tree_entry **entry_out, git_treebuilder *bld, const char *filename, const git_oid *id, unsigned int attributes","line":215,"args":[{"type":"git_tree_entry **","comment":"Pointer to store the entry (optional)","name":"entry_out"},{"type":"git_treebuilder *","comment":"Tree builder","name":"bld"},{"type":"const char *","comment":"Filename of the entry","name":"filename"},{"type":"const git_oid *","comment":"SHA1 oid of the entry","name":"id"},{"type":"unsigned int","comment":"Folder attributes of the entry","name":"attributes"}],"rawComments":"\n Add or update an entry to the builder\n\n Insert a new entry for `filename` in the builder with the\n given attributes.\n\n if an entry named `filename` already exists, its attributes\n will be updated with the given ones.\n\n The optional pointer `entry_out` can be used to retrieve a\n pointer to the newly created/updated entry.\n\n @param entry_out Pointer to store the entry (optional)\n @param bld Tree builder\n @param filename Filename of the entry\n @param id SHA1 oid of the entry\n @param attributes Folder attributes of the entry\n @return 0 or an error code\n\n","lineto":234,"description":"Add or update an entry to the builder"},"git_treebuilder_free":{"return":{"type":"void","comment":""},"group":"treebuilder","file":"tree.h","sig":"git_treebuilder *","comments":"This will clear all the entries and free to builder.\n Failing to free the builder after you're done using it\n will result in a memory leak","argline":"git_treebuilder *bld","line":192,"args":[{"type":"git_treebuilder *","comment":"Builder to free","name":"bld"}],"rawComments":"\n Free a tree builder\n\n This will clear all the entries and free to builder.\n Failing to free the builder after you're done using it\n will result in a memory leak\n\n @param bld Builder to free\n\n","lineto":201,"description":"Free a tree builder"},"git_signature_new":{"examples":{"general.c":["ex/v0.17.0/general.html#git_signature_new-25","ex/v0.17.0/general.html#git_signature_new-26"]},"return":{"type":"int","comment":"0 or an error code"},"group":"signature","file":"signature.h","sig":"git_signature **::const char *::const char *::git_time_t::int","comments":"","argline":"git_signature **sig_out, const char *name, const char *email, git_time_t time, int offset","line":22,"args":[{"type":"git_signature **","comment":"new signature, in case of error NULL","name":"sig_out"},{"type":"const char *","comment":"name of the person","name":"name"},{"type":"const char *","comment":"email of the person","name":"email"},{"type":"git_time_t","comment":"time when the action happened","name":"time"},{"type":"int","comment":"timezone offset in minutes for the time","name":"offset"}],"rawComments":"\n Create a new action signature. The signature must be freed\n manually or using git_signature_free\n\n @param sig_out new signature, in case of error NULL\n @param name name of the person\n @param email email of the person\n @param time time when the action happened\n @param offset timezone offset in minutes for the time\n @return 0 or an error code\n\n","lineto":33,"description":"Create a new action signature. The signature must be freed manually or using git_signature_free"},"git_tree_free":{"examples":{"diff.c":["ex/v0.17.0/diff.html#git_tree_free-7","ex/v0.17.0/diff.html#git_tree_free-8"]},"return":{"type":"void","comment":""},"group":"tree","file":"tree.h","sig":"git_tree *","comments":"This is a wrapper around git_object_free()\n\n IMPORTANT:\n It *is* necessary to call this method when you stop\n using a tree. Failure to do so will cause a memory leak.","argline":"git_tree *tree","line":54,"args":[{"type":"git_tree *","comment":"the tree to close","name":"tree"}],"rawComments":"\n Close an open tree\n\n This is a wrapper around git_object_free()\n\n IMPORTANT:\n It *is* necessary to call this method when you stop\n using a tree. Failure to do so will cause a memory leak.\n\n @param tree the tree to close\n\n","lineto":69,"description":"Close an open tree"},"git_tag_name":{"examples":{"general.c":["ex/v0.17.0/general.html#git_tag_name-27"]},"return":{"type":"const char *","comment":"name of the tag"},"group":"tag","file":"tag.h","sig":"git_tag *","comments":"","argline":"git_tag *tag","line":108,"args":[{"type":"git_tag *","comment":"a previously loaded tag.","name":"tag"}],"rawComments":"\n Get the name of a tag\n\n @param tag a previously loaded tag.\n @return name of the tag\n\n","lineto":114,"description":"Get the name of a tag"},"git_revwalk_repository":{"return":{"type":"git_repository *","comment":"the repository being walked"},"group":"revwalk","file":"revwalk.h","sig":"git_revwalk *","comments":"","argline":"git_revwalk *walk","line":226,"args":[{"type":"git_revwalk *","comment":"the revision walker","name":"walk"}],"rawComments":"\n Return the repository on which this walker\n is operating.\n\n @param walk the revision walker\n @return the repository being walked\n\n","lineto":233,"description":"Return the repository on which this walker is operating."},"git_index_get_unmerged_bypath":{"return":{"type":"const git_index_entry_unmerged *","comment":"the unmerged entry; NULL if not found"},"group":"index","file":"index.h","sig":"git_index *::const char *","comments":"The returned entry is read-only and should not be modified\n of freed by the caller.","argline":"git_index *index, const char *path","line":271,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"},{"type":"const char *","comment":"path to search","name":"path"}],"rawComments":"\n Get an unmerged entry from the index.\n\n The returned entry is read-only and should not be modified\n of freed by the caller.\n\n @param index an existing index object\n @param path path to search\n @return the unmerged entry; NULL if not found\n\n","lineto":281,"description":"Get an unmerged entry from the index."},"git_config_set_multivar":{"return":{"type":"int","comment":""},"group":"config","file":"config.h","sig":"git_config *::const char *::const char *::const char *","comments":"","argline":"git_config *cfg, const char *name, const char *regexp, const char *value","line":281,"args":[{"type":"git_config *","comment":"where to look for the variable","name":"cfg"},{"type":"const char *","comment":"the variable's name","name":"name"},{"type":"const char *","comment":"a regular expression to indicate which values to replace","name":"regexp"},{"type":"const char *","comment":"the new value.","name":"value"}],"rawComments":"\n Set a multivar\n\n @param cfg where to look for the variable\n @param name the variable's name\n @param regexp a regular expression to indicate which values to replace\n @param value the new value.\n\n","lineto":289,"description":"Set a multivar"},"git_repository_head":{"return":{"type":"int","comment":"0 on success; error code otherwise"},"group":"repository","file":"repository.h","sig":"git_reference **::git_repository *","comments":"","argline":"git_reference **head_out, git_repository *repo","line":116,"args":[{"type":"git_reference **","comment":"pointer to the reference which will be retrieved","name":"head_out"},{"type":"git_repository *","comment":"a repository object","name":"repo"}],"rawComments":"\n Retrieve and resolve the reference pointed at by HEAD.\n\n @param head_out pointer to the reference which will be retrieved\n @param repo a repository object\n\n @return 0 on success; error code otherwise\n\n","lineto":124,"description":"Retrieve and resolve the reference pointed at by HEAD."},"git_tree_entrycount":{"examples":{"general.c":["ex/v0.17.0/general.html#git_tree_entrycount-28"]},"return":{"type":"unsigned int","comment":"the number of entries in the tree"},"group":"tree","file":"tree.h","sig":"git_tree *","comments":"","argline":"git_tree *tree","line":80,"args":[{"type":"git_tree *","comment":"a previously loaded tree.","name":"tree"}],"rawComments":"\n Get the number of entries listed in a tree\n\n @param tree a previously loaded tree.\n @return the number of entries in the tree\n\n","lineto":86,"description":"Get the number of entries listed in a tree"},"git_tag_create_lightweight":{"return":{"type":"int","comment":"0 or an error code A proper reference is written in the /refs/tags folder, pointing to the provided target object"},"group":"tag","file":"tag.h","sig":"git_oid *::git_repository *::const char *::const git_object *::int","comments":"A new direct reference will be created pointing to\n this target object. If `force` is true and a reference\n already exists with the given name, it'll be replaced.","argline":"git_oid *oid, git_repository *repo, const char *tag_name, const git_object *target, int force","line":192,"args":[{"type":"git_oid *","comment":"Pointer where to store the OID of the provided target object. If the tag already exists, this parameter will be filled with the oid of the existing pointed object and the function will return a GIT_EEXISTS error code.","name":"oid"},{"type":"git_repository *","comment":"Repository where to store the lightweight tag","name":"repo"},{"type":"const char *","comment":"Name for the tag; this name is validated for consistency. It should also not conflict with an already existing tag name","name":"tag_name"},{"type":"const git_object *","comment":"Object to which this tag points. This object must belong to the given `repo`.","name":"target"},{"type":"int","comment":"Overwrite existing references","name":"force"}],"rawComments":"\n Create a new lightweight tag pointing at a target object\n\n A new direct reference will be created pointing to\n this target object. If `force` is true and a reference\n already exists with the given name, it'll be replaced.\n\n @param oid Pointer where to store the OID of the provided\n target object. If the tag already exists, this parameter\n will be filled with the oid of the existing pointed object\n and the function will return a GIT_EEXISTS error code.\n\n @param repo Repository where to store the lightweight tag\n\n @param tag_name Name for the tag; this name is validated\n for consistency. It should also not conflict with an\n already existing tag name\n\n @param target Object to which this tag points. This object\n must belong to the given `repo`.\n\n @param force Overwrite existing references\n\n @return 0 or an error code\n\tA proper reference is written in the /refs/tags folder,\n pointing to the provided target object\n\n","lineto":224,"description":"Create a new lightweight tag pointing at a target object"},"git_reference_delete":{"return":{"type":"int","comment":"0 or an error code"},"group":"reference","file":"refs.h","sig":"git_reference *","comments":"This method works for both direct and symbolic references.\n\n The reference will be immediately removed on disk and from\n memory. The given reference pointer will no longer be valid.","argline":"git_reference *ref","line":210,"args":[{"type":"git_reference *","comment":"The reference to remove","name":"ref"}],"rawComments":"\n Delete an existing reference\n\n This method works for both direct and symbolic references.\n\n The reference will be immediately removed on disk and from\n memory. The given reference pointer will no longer be valid.\n\n @param ref The reference to remove\n @return 0 or an error code\n\n","lineto":221,"description":"Delete an existing reference"},"git_config_delete":{"return":{"type":"int","comment":""},"group":"config","file":"config.h","sig":"git_config *::const char *","comments":"","argline":"git_config *cfg, const char *name","line":291,"args":[{"type":"git_config *","comment":"the configuration","name":"cfg"},{"type":"const char *","comment":"the variable to delete","name":"name"}],"rawComments":"\n Delete a config variable\n\n @param cfg the configuration\n @param name the variable to delete\n\n","lineto":297,"description":"Delete a config variable"},"git_index_add":{"return":{"type":"int","comment":"0 or an error code"},"group":"index","file":"index.h","sig":"git_index *::const char *::int","comments":"The file `path` must be relative to the repository's\n working folder and must be readable.\n\n This method will fail in bare index instances.\n\n This forces the file to be added to the index, not looking\n at gitignore rules. Those rules can be evaluated through\n the git_status APIs (in status.h) before calling this.","argline":"git_index *index, const char *path, int stage","line":164,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"},{"type":"const char *","comment":"filename to add","name":"path"},{"type":"int","comment":"stage for the entry","name":"stage"}],"rawComments":"\n Add or update an index entry from a file in disk\n\n The file `path` must be relative to the repository's\n working folder and must be readable.\n\n This method will fail in bare index instances.\n\n This forces the file to be added to the index, not looking\n at gitignore rules. Those rules can be evaluated through\n the git_status APIs (in status.h) before calling this.\n\n @param index an existing index object\n @param path filename to add\n @param stage stage for the entry\n @return 0 or an error code\n\n","lineto":181,"description":"Add or update an index entry from a file in disk"},"gitwin_get_codepage":{"return":{"type":"unsigned int","comment":"numeric codepage identifier"},"group":"gitwin","file":"windows.h","sig":"","comments":"","argline":"void","line":43,"args":[{"type":"","comment":"","name":"void"}],"rawComments":"\n Return the active codepage for Windows syscalls\n\n @return numeric codepage identifier\n\n","lineto":48,"description":"Return the active codepage for Windows syscalls"},"git_tree_lookup":{"examples":{"general.c":["ex/v0.17.0/general.html#git_tree_lookup-29","ex/v0.17.0/general.html#git_tree_lookup-30"]},"return":{"type":"int","comment":"0 or an error code"},"group":"tree","file":"tree.h","sig":"git_tree **::git_repository *::const git_oid *","comments":"","argline":"git_tree **tree, git_repository *repo, const git_oid *id","line":24,"args":[{"type":"git_tree **","comment":"pointer to the looked up tree","name":"tree"},{"type":"git_repository *","comment":"the repo to use when locating the tree.","name":"repo"},{"type":"const git_oid *","comment":"identity of the tree to locate.","name":"id"}],"rawComments":"\n Lookup a tree object from the repository.\n\n @param tree pointer to the looked up tree\n @param repo the repo to use when locating the tree.\n @param id identity of the tree to locate.\n @return 0 or an error code\n\n","lineto":35,"description":"Lookup a tree object from the repository."},"git_repository_set_config":{"return":{"type":"void","comment":""},"group":"repository","file":"repository.h","sig":"git_repository *::git_config *","comments":"This configuration file will be used for all configuration\n queries involving this repository.\n\n The repository will keep a reference to the config file;\n the user must still free the config after setting it\n to the repository, or it will leak.","argline":"git_repository *repo, git_config *config","line":225,"args":[{"type":"git_repository *","comment":"A repository object","name":"repo"},{"type":"git_config *","comment":"A Config object","name":"config"}],"rawComments":"\n Set the configuration file for this repository\n\n This configuration file will be used for all configuration\n queries involving this repository.\n\n The repository will keep a reference to the config file;\n the user must still free the config after setting it\n to the repository, or it will leak.\n\n @param repo A repository object\n @param config A Config object\n\n","lineto":238,"description":"Set the configuration file for this repository"},"git_config_foreach":{"return":{"type":"int","comment":"0 or the return value of the callback which didn't return 0"},"group":"config","file":"config.h","sig":"git_config *::int(*)(const char *var_name, const char *value, void *payload)::void *","comments":"The callback receives the normalized name and value of each variable\n in the config backend, and the data pointer passed to this function.\n As soon as one of the callback functions returns something other than 0,\n this function returns that value.","argline":"git_config *cfg, int (*callback)(const char *var_name, const char *value, void *payload), void *payload","line":299,"args":[{"type":"git_config *","comment":"where to get the variables from","name":"cfg"},{"type":"int(*)(const char *var_name, const char *value, void *payload)","comment":"the function to call on each variable","name":"callback"},{"type":"void *","comment":"the data to pass to the callback","name":"payload"}],"rawComments":"\n Perform an operation on each config variable.\n\n The callback receives the normalized name and value of each variable\n in the config backend, and the data pointer passed to this function.\n As soon as one of the callback functions returns something other than 0,\n this function returns that value.\n\n @param cfg where to get the variables from\n @param callback the function to call on each variable\n @param payload the data to pass to the callback\n @return 0 or the return value of the callback which didn't return 0\n\n","lineto":315,"description":"Perform an operation on each config variable."},"git_remote_add":{"return":{"type":"int","comment":""},"group":"remote","file":"remote.h","sig":"git_remote **::git_repository *::const char *::const char *","comments":"","argline":"git_remote **out, git_repository *repo, const char *name, const char *url","line":222,"args":[{"type":"git_remote **","comment":"the resulting remote","name":"out"},{"type":"git_repository *","comment":"the repository in which to create the remote","name":"repo"},{"type":"const char *","comment":"the remote's name","name":"name"},{"type":"const char *","comment":"the remote's url","name":"url"}],"rawComments":"\n Add a remote with the default fetch refspec to the repository's configuration\n\n @param out the resulting remote\n @param repo the repository in which to create the remote\n @param name the remote's name\n @param url the remote's url\n\n","lineto":230,"description":"Add a remote with the default fetch refspec to the repository's configuration"},"git_diff_print_compact":{"examples":{"diff.c":["ex/v0.17.0/diff.html#git_diff_print_compact-9"]},"return":{"type":"int","comment":""},"group":"diff","file":"diff.h","sig":"git_diff_list *::void *::git_diff_data_fn","comments":"","argline":"git_diff_list *diff, void *cb_data, git_diff_data_fn print_cb","line":313,"args":[{"type":"git_diff_list *","comment":"","name":"diff"},{"type":"void *","comment":"","name":"cb_data"},{"type":"git_diff_data_fn","comment":"","name":"print_cb"}],"rawComments":"\n Iterate over a diff generating text output like \"git diff --name-status\".\n\n","lineto":319,"description":"Iterate over a diff generating text output like \"git diff --name-status\"."},"git_oid_pathfmt":{"return":{"type":"void","comment":""},"group":"oid","file":"oid.h","sig":"char *::const git_oid *","comments":"The resulting string is \"aa/...\", where \"aa\" is the first two\n hex digitis of the oid and \"...\" is the remaining 38 digits.","argline":"char *str, const git_oid *oid","line":83,"args":[{"type":"char *","comment":"output hex string; must be pointing at the start of the hex sequence and have at least the number of bytes needed for an oid encoded in hex (41 bytes). Only the oid digits are written; a '\\\\0' terminator must be added by the caller if it is required.","name":"str"},{"type":"const git_oid *","comment":"oid structure to format.","name":"oid"}],"rawComments":"\n Format a git_oid into a loose-object path string.\n\n The resulting string is \"aa/...\", where \"aa\" is the first two\n hex digitis of the oid and \"...\" is the remaining 38 digits.\n\n @param str output hex string; must be pointing at the start of\n\t\tthe hex sequence and have at least the number of bytes\n\t\tneeded for an oid encoded in hex (41 bytes). Only the\n\t\toid digits are written; a '\\\\0' terminator must be added\n\t\tby the caller if it is required.\n @param oid oid structure to format.\n\n","lineto":96,"description":"Format a git_oid into a loose-object path string."},"git_remote_pushspec":{"return":{"type":"const git_refspec *","comment":"a pointer to the push refspec or NULL if it doesn't exist"},"group":"remote","file":"remote.h","sig":"git_remote *","comments":"","argline":"git_remote *remote","line":108,"args":[{"type":"git_remote *","comment":"the remote","name":"remote"}],"rawComments":"\n Get the push refspec\n\n @param remote the remote\n @return a pointer to the push refspec or NULL if it doesn't exist\n\n","lineto":115,"description":"Get the push refspec"},"git_tree_entry_byname":{"examples":{"general.c":["ex/v0.17.0/general.html#git_tree_entry_byname-31"]},"return":{"type":"const git_tree_entry *","comment":"the tree entry; NULL if not found"},"group":"tree","file":"tree.h","sig":"git_tree *::const char *","comments":"","argline":"git_tree *tree, const char *filename","line":88,"args":[{"type":"git_tree *","comment":"a previously loaded tree.","name":"tree"},{"type":"const char *","comment":"the filename of the desired entry","name":"filename"}],"rawComments":"\n Lookup a tree entry by its filename\n\n @param tree a previously loaded tree.\n @param filename the filename of the desired entry\n @return the tree entry; NULL if not found\n\n","lineto":95,"description":"Lookup a tree entry by its filename"},"git_reference_create_oid":{"return":{"type":"int","comment":"0 or an error code"},"group":"reference","file":"refs.h","sig":"git_reference **::git_repository *::const char *::const git_oid *::int","comments":"The reference will be created in the repository and written\n to the disk.\n\n The generated reference must be freed by the user.\n\n If `force` is true and there already exists a reference\n with the same name, it will be overwritten.","argline":"git_reference **ref_out, git_repository *repo, const char *name, const git_oid *id, int force","line":66,"args":[{"type":"git_reference **","comment":"Pointer to the newly created reference","name":"ref_out"},{"type":"git_repository *","comment":"Repository where that reference will live","name":"repo"},{"type":"const char *","comment":"The name of the reference","name":"name"},{"type":"const git_oid *","comment":"The object id pointed to by the reference.","name":"id"},{"type":"int","comment":"Overwrite existing references","name":"force"}],"rawComments":"\n Create a new object id reference.\n\n The reference will be created in the repository and written\n to the disk.\n\n The generated reference must be freed by the user.\n\n If `force` is true and there already exists a reference\n with the same name, it will be overwritten.\n\n @param ref_out Pointer to the newly created reference\n @param repo Repository where that reference will live\n @param name The name of the reference\n @param id The object id pointed to by the reference.\n @param force Overwrite existing references\n @return 0 or an error code\n\n","lineto":84,"description":"Create a new object id reference."},"git_reflog_entry_msg":{"return":{"type":"char *","comment":"the log msg"},"group":"reflog","file":"reflog.h","sig":"const git_reflog_entry *","comments":"","argline":"const git_reflog_entry *entry","line":111,"args":[{"type":"const git_reflog_entry *","comment":"a reflog entry","name":"entry"}],"rawComments":"\n Get the log msg\n\n @param entry a reflog entry\n @return the log msg\n\n","lineto":117,"description":"Get the log msg"},"git_branch_move":{"return":{"type":"int","comment":"0 on success, GIT_ENOTFOUND if the branch doesn't exist or an error code."},"group":"branch","file":"branch.h","sig":"git_repository *::const char *::const char *::int","comments":"","argline":"git_repository *repo, const char *old_branch_name, const char *new_branch_name, int force","line":98,"args":[{"type":"git_repository *","comment":"Repository where lives the branch.","name":"repo"},{"type":"const char *","comment":"Current name of the branch to be moved; this name is validated for consistency.","name":"old_branch_name"},{"type":"const char *","comment":"Target name of the branch once the move is performed; this name is validated for consistency.","name":"new_branch_name"},{"type":"int","comment":"Overwrite existing branch.","name":"force"}],"rawComments":"\n Move/rename an existing branch reference.\n\n @param repo Repository where lives the branch.\n\n @param old_branch_name Current name of the branch to be moved;\n this name is validated for consistency.\n\n @param new_branch_name Target name of the branch once the move\n is performed; this name is validated for consistency.\n\n @param force Overwrite existing branch.\n\n @return 0 on success, GIT_ENOTFOUND if the branch\n doesn't exist or an error code.\n\n","lineto":118,"description":"Move/rename an existing branch reference."},"git_odb_read_prefix":{"return":{"type":"int","comment":"0 if the object was read; GIT_ENOTFOUND if the object is not in the database. GIT_EAMBIGUOUS if the prefix is ambiguous (several objects match the prefix)"},"group":"odb","file":"odb.h","sig":"git_odb_object **::git_odb *::const git_oid *::unsigned int","comments":"This method queries all available ODB backends\n trying to match the 'len' first hexadecimal\n characters of the 'short_id'.\n The remaining (GIT_OID_HEXSZ-len)*4 bits of\n 'short_id' must be 0s.\n 'len' must be at least GIT_OID_MINPREFIXLEN,\n and the prefix must be long enough to identify\n a unique object in all the backends; the\n method will fail otherwise.\n\n The returned object is reference counted and\n internally cached, so it should be closed\n by the user once it's no longer in use.","argline":"git_odb_object **out, git_odb *db, const git_oid *short_id, unsigned int len","line":116,"args":[{"type":"git_odb_object **","comment":"pointer where to store the read object","name":"out"},{"type":"git_odb *","comment":"database to search for the object in.","name":"db"},{"type":"const git_oid *","comment":"a prefix of the id of the object to read.","name":"short_id"},{"type":"unsigned int","comment":"the length of the prefix","name":"len"}],"rawComments":"\n Read an object from the database, given a prefix\n of its identifier.\n\n This method queries all available ODB backends\n trying to match the 'len' first hexadecimal\n characters of the 'short_id'.\n The remaining (GIT_OID_HEXSZ-len)*4 bits of\n 'short_id' must be 0s.\n 'len' must be at least GIT_OID_MINPREFIXLEN,\n and the prefix must be long enough to identify\n a unique object in all the backends; the\n method will fail otherwise.\n\n The returned object is reference counted and\n internally cached, so it should be closed\n by the user once it's no longer in use.\n\n @param out pointer where to store the read object\n @param db database to search for the object in.\n @param short_id a prefix of the id of the object to read.\n @param len the length of the prefix\n @return 0 if the object was read;\n\tGIT_ENOTFOUND if the object is not in the database.\n\tGIT_EAMBIGUOUS if the prefix is ambiguous (several objects match the prefix)\n\n","lineto":142,"description":"Read an object from the database, given a prefix of its identifier."},"git_odb_write":{"examples":{"general.c":["ex/v0.17.0/general.html#git_odb_write-32"]},"return":{"type":"int","comment":"0 or an error code"},"group":"odb","file":"odb.h","sig":"git_oid *::git_odb *::const void *::size_t::git_otype","comments":"This method writes a full object straight into the ODB.\n For most cases, it is preferred to write objects through a write\n stream, which is both faster and less memory intensive, specially\n for big objects.\n\n This method is provided for compatibility with custom backends\n which are not able to support streaming writes","argline":"git_oid *oid, git_odb *odb, const void *data, size_t len, git_otype type","line":175,"args":[{"type":"git_oid *","comment":"pointer to store the OID result of the write","name":"oid"},{"type":"git_odb *","comment":"object database where to store the object","name":"odb"},{"type":"const void *","comment":"buffer with the data to storr","name":"data"},{"type":"size_t","comment":"size of the buffer","name":"len"},{"type":"git_otype","comment":"type of the data to store","name":"type"}],"rawComments":"\n Write an object directly into the ODB\n\n This method writes a full object straight into the ODB.\n For most cases, it is preferred to write objects through a write\n stream, which is both faster and less memory intensive, specially\n for big objects.\n\n This method is provided for compatibility with custom backends\n which are not able to support streaming writes\n\n @param oid pointer to store the OID result of the write\n @param odb object database where to store the object\n @param data buffer with the data to storr\n @param len size of the buffer\n @param type type of the data to store\n @return 0 or an error code\n\n","lineto":193,"description":"Write an object directly into the ODB"},"git_status_foreach":{"return":{"type":"int","comment":"0 on success or the return value of the callback that was non-zero"},"group":"status","file":"status.h","sig":"git_repository *::int(*)(const char *, unsigned int, void *)::void *","comments":"The callback is passed the path of the file, the status and the data\n pointer passed to this function. If the callback returns something other\n than 0, this function will return that value.","argline":"git_repository *repo, int (*callback)(const char *, unsigned int, void *), void *payload","line":36,"args":[{"type":"git_repository *","comment":"a repository object","name":"repo"},{"type":"int(*)(const char *, unsigned int, void *)","comment":"the function to call on each file","name":"callback"},{"type":"void *","comment":"","name":"payload"}],"rawComments":"\n Gather file statuses and run a callback for each one.\n\n The callback is passed the path of the file, the status and the data\n pointer passed to this function. If the callback returns something other\n than 0, this function will return that value.\n\n @param repo a repository object\n @param callback the function to call on each file\n @return 0 on success or the return value of the callback that was non-zero\n\n","lineto":50,"description":"Gather file statuses and run a callback for each one."},"git_repository_set_odb":{"return":{"type":"void","comment":""},"group":"repository","file":"repository.h","sig":"git_repository *::git_odb *","comments":"The ODB will be used for all object-related operations\n involving this repository.\n\n The repository will keep a reference to the ODB; the user\n must still free the ODB object after setting it to the\n repository, or it will leak.","argline":"git_repository *repo, git_odb *odb","line":256,"args":[{"type":"git_repository *","comment":"A repository object","name":"repo"},{"type":"git_odb *","comment":"An ODB object","name":"odb"}],"rawComments":"\n Set the Object Database for this repository\n\n The ODB will be used for all object-related operations\n involving this repository.\n\n The repository will keep a reference to the ODB; the user\n must still free the ODB object after setting it to the\n repository, or it will leak.\n\n @param repo A repository object\n @param odb An ODB object\n\n","lineto":269,"description":"Set the Object Database for this repository"},"git_strarray_copy":{"return":{"type":"int","comment":""},"group":"strarray","file":"common.h","sig":"git_strarray *::const git_strarray *","comments":"","argline":"git_strarray *tgt, const git_strarray *src","line":90,"args":[{"type":"git_strarray *","comment":"","name":"tgt"},{"type":"const git_strarray *","comment":"","name":"src"}],"rawComments":"","lineto":90,"description":""},"git_object_type":{"examples":{"diff.c":["ex/v0.17.0/diff.html#git_object_type-10"]},"return":{"type":"git_otype","comment":"the object's type"},"group":"object","file":"object.h","sig":"const git_object *","comments":"","argline":"const git_object *obj","line":89,"args":[{"type":"const git_object *","comment":"the repository object","name":"obj"}],"rawComments":"\n Get the object type of an object\n\n @param obj the repository object\n @return the object's type\n\n","lineto":95,"description":"Get the object type of an object"},"git_object_lookup_prefix":{"examples":{"diff.c":["ex/v0.17.0/diff.html#git_object_lookup_prefix-11"]},"return":{"type":"int","comment":"0 or an error code"},"group":"object","file":"object.h","sig":"git_object **::git_repository *::const git_oid *::unsigned int::git_otype","comments":"The object obtained will be so that its identifier\n matches the first 'len' hexadecimal characters\n (packets of 4 bits) of the given 'id'.\n 'len' must be at least GIT_OID_MINPREFIXLEN, and\n long enough to identify a unique object matching\n the prefix; otherwise the method will fail.\n\n The generated reference is owned by the repository and\n should be closed with the `git_object_free` method\n instead of free'd manually.\n\n The 'type' parameter must match the type of the object\n in the odb; the method will fail otherwise.\n The special value 'GIT_OBJ_ANY' may be passed to let\n the method guess the object's type.","argline":"git_object **object_out, git_repository *repo, const git_oid *id, unsigned int len, git_otype type","line":47,"args":[{"type":"git_object **","comment":"pointer where to store the looked-up object","name":"object_out"},{"type":"git_repository *","comment":"the repository to look up the object","name":"repo"},{"type":"const git_oid *","comment":"a short identifier for the object","name":"id"},{"type":"unsigned int","comment":"the length of the short identifier","name":"len"},{"type":"git_otype","comment":"the type of the object","name":"type"}],"rawComments":"\n Lookup a reference to one of the objects in a repostory,\n given a prefix of its identifier (short id).\n\n The object obtained will be so that its identifier\n matches the first 'len' hexadecimal characters\n (packets of 4 bits) of the given 'id'.\n 'len' must be at least GIT_OID_MINPREFIXLEN, and\n long enough to identify a unique object matching\n the prefix; otherwise the method will fail.\n\n The generated reference is owned by the repository and\n should be closed with the `git_object_free` method\n instead of free'd manually.\n\n The 'type' parameter must match the type of the object\n in the odb; the method will fail otherwise.\n The special value 'GIT_OBJ_ANY' may be passed to let\n the method guess the object's type.\n\n @param object_out pointer where to store the looked-up object\n @param repo the repository to look up the object\n @param id a short identifier for the object\n @param len the length of the short identifier\n @param type the type of the object\n @return 0 or an error code\n\n","lineto":79,"description":"Lookup a reference to one of the objects in a repostory, given a prefix of its identifier (short id)."},"git_treebuilder_clear":{"return":{"type":"void","comment":""},"group":"treebuilder","file":"tree.h","sig":"git_treebuilder *","comments":"","argline":"git_treebuilder *bld","line":185,"args":[{"type":"git_treebuilder *","comment":"Builder to clear","name":"bld"}],"rawComments":"\n Clear all the entires in the builder\n\n @param bld Builder to clear\n\n","lineto":190,"description":"Clear all the entires in the builder"},"git_status_should_ignore":{"return":{"type":"int","comment":"0 if ignore rules could be processed for the file (regardless of whether it exists or not), or an error < 0 if they could not."},"group":"status","file":"status.h","sig":"int *::git_repository *::const char *","comments":"This function simply checks the ignore rules to see if they would apply\n to the given file. Unlike git_status_file(), this indicates if the file\n would be ignored regardless of whether the file is already in the index\n or in the repository.","argline":"int *ignored, git_repository *repo, const char *path","line":143,"args":[{"type":"int *","comment":"boolean returning 0 if the file is not ignored, 1 if it is","name":"ignored"},{"type":"git_repository *","comment":"a repository object","name":"repo"},{"type":"const char *","comment":"the file to check ignores for, rooted at the repo's workdir.","name":"path"}],"rawComments":"\n Test if the ignore rules apply to a given file.\n\n This function simply checks the ignore rules to see if they would apply\n to the given file. Unlike git_status_file(), this indicates if the file\n would be ignored regardless of whether the file is already in the index\n or in the repository.\n\n @param ignored boolean returning 0 if the file is not ignored, 1 if it is\n @param repo a repository object\n @param path the file to check ignores for, rooted at the repo's workdir.\n @return 0 if ignore rules could be processed for the file (regardless\n of whether it exists or not), or an error < 0 if they could not.\n\n","lineto":160,"description":"Test if the ignore rules apply to a given file."},"git_revwalk_next":{"examples":{"general.c":["ex/v0.17.0/general.html#git_revwalk_next-33"]},"return":{"type":"int","comment":"0 if the next commit was found; GIT_REVWALKOVER if there are no commits left to iterate"},"group":"revwalk","file":"revwalk.h","sig":"git_oid *::git_revwalk *","comments":"The initial call to this method is *not* blocking when\n iterating through a repo with a time-sorting mode.\n\n Iterating with Topological or inverted modes makes the initial\n call blocking to preprocess the commit list, but this block should be\n mostly unnoticeable on most repositories (topological preprocessing\n times at 0.3s on the git.git repo).\n\n The revision walker is reset when the walk is over.","argline":"git_oid *oid, git_revwalk *walk","line":188,"args":[{"type":"git_oid *","comment":"Pointer where to store the oid of the next commit","name":"oid"},{"type":"git_revwalk *","comment":"the walker to pop the commit from.","name":"walk"}],"rawComments":"\n Get the next commit from the revision walk.\n\n The initial call to this method is *not* blocking when\n iterating through a repo with a time-sorting mode.\n\n Iterating with Topological or inverted modes makes the initial\n call blocking to preprocess the commit list, but this block should be\n mostly unnoticeable on most repositories (topological preprocessing\n times at 0.3s on the git.git repo).\n\n The revision walker is reset when the walk is over.\n\n @param oid Pointer where to store the oid of the next commit\n @param walk the walker to pop the commit from.\n @return 0 if the next commit was found;\n\tGIT_REVWALKOVER if there are no commits left to iterate\n\n","lineto":206,"description":"Get the next commit from the revision walk."},"git_index_entrycount_unmerged":{"return":{"type":"unsigned int","comment":"integer of count of current unmerged entries"},"group":"index","file":"index.h","sig":"git_index *","comments":"","argline":"git_index *index","line":263,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"}],"rawComments":"\n Get the count of unmerged entries currently in the index\n\n @param index an existing index object\n @return integer of count of current unmerged entries\n\n","lineto":269,"description":"Get the count of unmerged entries currently in the index"},"git_reflog_entrycount":{"return":{"type":"unsigned int","comment":"the number of log entries"},"group":"reflog","file":"reflog.h","sig":"git_reflog *","comments":"","argline":"git_reflog *reflog","line":70,"args":[{"type":"git_reflog *","comment":"the previously loaded reflog","name":"reflog"}],"rawComments":"\n Get the number of log entries in a reflog\n\n @param reflog the previously loaded reflog\n @return the number of log entries\n\n","lineto":76,"description":"Get the number of log entries in a reflog"},"git_diff_list_free":{"examples":{"diff.c":["ex/v0.17.0/diff.html#git_diff_list_free-12","ex/v0.17.0/diff.html#git_diff_list_free-13"]},"return":{"type":"void","comment":""},"group":"diff","file":"diff.h","sig":"git_diff_list *","comments":"","argline":"git_diff_list *diff","line":201,"args":[{"type":"git_diff_list *","comment":"","name":"diff"}],"rawComments":"\n Deallocate a diff list.\n\n","lineto":204,"description":"Deallocate a diff list."},"giterr_last":{"examples":{"network/git2.c":["ex/v0.17.0/git2.html#giterr_last-2","ex/v0.17.0/git2.html#giterr_last-3"]},"return":{"type":"const git_error *","comment":"A git_error object."},"group":"giterr","file":"errors.h","sig":"","comments":"","argline":"void","line":93,"args":[{"type":"","comment":"","name":"void"}],"rawComments":"\n Return the last `git_error` object that was generated for the\n current thread or NULL if no error has occurred.\n\n @return A git_error object.\n\n","lineto":99,"description":"Return the last `git_error` object that was generated for the current thread or NULL if no error has occurred."},"git_note_free":{"return":{"type":"void","comment":""},"group":"note","file":"notes.h","sig":"git_note *","comments":"","argline":"git_note *note","line":88,"args":[{"type":"git_note *","comment":"git_note object","name":"note"}],"rawComments":"\n Free a git_note object\n\n @param note git_note object\n\n","lineto":93,"description":"Free a git_note object"},"git_oid_fromraw":{"return":{"type":"void","comment":""},"group":"oid","file":"oid.h","sig":"git_oid *::const unsigned char *","comments":"","argline":"git_oid *out, const unsigned char *raw","line":63,"args":[{"type":"git_oid *","comment":"oid structure the result is written into.","name":"out"},{"type":"const unsigned char *","comment":"the raw input bytes to be copied.","name":"raw"}],"rawComments":"\n Copy an already raw oid into a git_oid structure.\n\n @param out oid structure the result is written into.\n @param raw the raw input bytes to be copied.\n\n","lineto":69,"description":"Copy an already raw oid into a git_oid structure."},"git_reference_lookup":{"examples":{"general.c":["ex/v0.17.0/general.html#git_reference_lookup-34"],"diff.c":["ex/v0.17.0/diff.html#git_reference_lookup-14"]},"return":{"type":"int","comment":"0 or an error code"},"group":"reference","file":"refs.h","sig":"git_reference **::git_repository *::const char *","comments":"The generated reference must be freed by the user.","argline":"git_reference **reference_out, git_repository *repo, const char *name","line":23,"args":[{"type":"git_reference **","comment":"pointer to the looked-up reference","name":"reference_out"},{"type":"git_repository *","comment":"the repository to look up the reference","name":"repo"},{"type":"const char *","comment":"the long name for the reference (e.g. HEAD, ref/heads/master, refs/tags/v0.1.0, ...)","name":"name"}],"rawComments":"\n Lookup a reference by its name in a repository.\n\n The generated reference must be freed by the user.\n\n @param reference_out pointer to the looked-up reference\n @param repo the repository to look up the reference\n @param name the long name for the reference (e.g. HEAD, ref/heads/master, refs/tags/v0.1.0, ...)\n @return 0 or an error code\n\n","lineto":33,"description":"Lookup a reference by its name in a repository."},"git_commit_time":{"examples":{"general.c":["ex/v0.17.0/general.html#git_commit_time-35","ex/v0.17.0/general.html#git_commit_time-36"]},"return":{"type":"git_time_t","comment":"the time of a commit"},"group":"commit","file":"commit.h","sig":"git_commit *","comments":"","argline":"git_commit *commit","line":101,"args":[{"type":"git_commit *","comment":"a previously loaded commit.","name":"commit"}],"rawComments":"\n Get the commit time (i.e. committer time) of a commit.\n\n @param commit a previously loaded commit.\n @return the time of a commit\n\n","lineto":107,"description":"Get the commit time (i.e. committer time) of a commit."},"git_config_new":{"return":{"type":"int","comment":"0 or an error code"},"group":"config","file":"config.h","sig":"git_config **","comments":"This object is empty, so you have to add a file to it before you\n can do anything with it.","argline":"git_config **out","line":106,"args":[{"type":"git_config **","comment":"pointer to the new configuration","name":"out"}],"rawComments":"\n Allocate a new configuration object\n\n This object is empty, so you have to add a file to it before you\n can do anything with it.\n\n @param out pointer to the new configuration\n @return 0 or an error code\n\n","lineto":115,"description":"Allocate a new configuration object"},"git_odb_object_type":{"examples":{"general.c":["ex/v0.17.0/general.html#git_odb_object_type-37"]},"return":{"type":"git_otype","comment":"the type"},"group":"odb","file":"odb.h","sig":"git_odb_object *","comments":"","argline":"git_odb_object *object","line":321,"args":[{"type":"git_odb_object *","comment":"the object","name":"object"}],"rawComments":"\n Return the type of an ODB object\n\n @param object the object\n @return the type\n\n","lineto":327,"description":"Return the type of an ODB object"},"git_config_find_system":{"return":{"type":"int","comment":"0 if a system configuration file has been found. Its path will be stored in `buffer`."},"group":"config","file":"config.h","sig":"char *::size_t","comments":"If /etc/gitconfig doesn't exist, it will look for\n %PROGRAMFILES%\\Git\\etc\\gitconfig.","argline":"char *system_config_path, size_t length","line":70,"args":[{"type":"char *","comment":"Buffer of GIT_PATH_MAX length to store the path","name":"system_config_path"},{"type":"size_t","comment":"","name":"length"}],"rawComments":"\n Locate the path to the system configuration file\n\n If /etc/gitconfig doesn't exist, it will look for\n %PROGRAMFILES%\\Git\\etc\\gitconfig.\n @param system_config_path Buffer of GIT_PATH_MAX length to store the path\n @return 0 if a system configuration file has been\n\tfound. Its path will be stored in `buffer`.\n\n","lineto":80,"description":"Locate the path to the system configuration file"},"git_reference_type":{"examples":{"general.c":["ex/v0.17.0/general.html#git_reference_type-38"]},"return":{"type":"git_ref_t","comment":"the type"},"group":"reference","file":"refs.h","sig":"git_reference *","comments":"Either direct (GIT_REF_OID) or symbolic (GIT_REF_SYMBOLIC)","argline":"git_reference *ref","line":106,"args":[{"type":"git_reference *","comment":"The reference","name":"ref"}],"rawComments":"\n Get the type of a reference\n\n Either direct (GIT_REF_OID) or symbolic (GIT_REF_SYMBOLIC)\n\n @param ref The reference\n @return the type\n\n","lineto":114,"description":"Get the type of a reference"},"git_oid_fmt":{"examples":{"network/ls-remote.c":["ex/v0.17.0/ls-remote.html#git_oid_fmt-3"],"network/fetch.c":["ex/v0.17.0/fetch.html#git_oid_fmt-5","ex/v0.17.0/fetch.html#git_oid_fmt-6"],"showindex.c":["ex/v0.17.0/showindex.html#git_oid_fmt-4"],"network/index-pack.c":["ex/v0.17.0/index-pack.html#git_oid_fmt-3","ex/v0.17.0/index-pack.html#git_oid_fmt-4"],"general.c":["ex/v0.17.0/general.html#git_oid_fmt-39","ex/v0.17.0/general.html#git_oid_fmt-40","ex/v0.17.0/general.html#git_oid_fmt-41","ex/v0.17.0/general.html#git_oid_fmt-42","ex/v0.17.0/general.html#git_oid_fmt-43"]},"return":{"type":"void","comment":""},"group":"oid","file":"oid.h","sig":"char *::const git_oid *","comments":"","argline":"char *str, const git_oid *oid","line":71,"args":[{"type":"char *","comment":"output hex string; must be pointing at the start of the hex sequence and have at least the number of bytes needed for an oid encoded in hex (40 bytes). Only the oid digits are written; a '\\\\0' terminator must be added by the caller if it is required.","name":"str"},{"type":"const git_oid *","comment":"oid structure to format.","name":"oid"}],"rawComments":"\n Format a git_oid into a hex string.\n\n @param str output hex string; must be pointing at the start of\n\t\tthe hex sequence and have at least the number of bytes\n\t\tneeded for an oid encoded in hex (40 bytes). Only the\n\t\toid digits are written; a '\\\\0' terminator must be added\n\t\tby the caller if it is required.\n @param oid oid structure to format.\n\n","lineto":81,"description":"Format a git_oid into a hex string."},"git_reference_name_to_oid":{"return":{"type":"int","comment":"0 on success, -1 if name could not be resolved"},"group":"reference","file":"refs.h","sig":"git_oid *::git_repository *::const char *","comments":"@param oid Pointer to oid to be filled in","argline":"git_oid *out, git_repository *repo, const char *name","line":35,"args":[{"type":"git_oid *","comment":"","name":"out"},{"type":"git_repository *","comment":"The repository in which to look up the reference","name":"repo"},{"type":"const char *","comment":"The long name for the reference","name":"name"}],"rawComments":"\n Lookup a reference by name and resolve immediately to OID.\n\n @param oid Pointer to oid to be filled in\n @param repo The repository in which to look up the reference\n @param name The long name for the reference\n @return 0 on success, -1 if name could not be resolved\n\n","lineto":44,"description":"Lookup a reference by name and resolve immediately to OID."},"git_tag_id":{"return":{"type":"const git_oid *","comment":"object identity for the tag."},"group":"tag","file":"tag.h","sig":"git_tag *","comments":"","argline":"git_tag *tag","line":72,"args":[{"type":"git_tag *","comment":"a previously loaded tag.","name":"tag"}],"rawComments":"\n Get the id of a tag.\n\n @param tag a previously loaded tag.\n @return object identity for the tag.\n\n","lineto":78,"description":"Get the id of a tag."},"git_config_get_bool":{"return":{"type":"int","comment":"0 or an error code"},"group":"config","file":"config.h","sig":"int *::git_config *::const char *","comments":"This function uses the usual C convention of 0 being false and\n anything else true.","argline":"int *out, git_config *cfg, const char *name","line":197,"args":[{"type":"int *","comment":"pointer to the variable where the value should be stored","name":"out"},{"type":"git_config *","comment":"where to look for the variable","name":"cfg"},{"type":"const char *","comment":"the variable's name","name":"name"}],"rawComments":"\n Get the value of a boolean config variable.\n\n This function uses the usual C convention of 0 being false and\n anything else true.\n\n @param out pointer to the variable where the value should be stored\n @param cfg where to look for the variable\n @param name the variable's name\n @return 0 or an error code\n\n","lineto":208,"description":"Get the value of a boolean config variable."},"git_repository_index":{"examples":{"showindex.c":["ex/v0.17.0/showindex.html#git_repository_index-5"],"general.c":["ex/v0.17.0/general.html#git_repository_index-44"]},"return":{"type":"int","comment":"0, or an error code"},"group":"repository","file":"repository.h","sig":"git_index **::git_repository *","comments":"If a custom index has not been set, the default\n index for the repository will be returned (the one\n located in `.git/index`).\n\n The index must be freed once it's no longer being used by\n the user.","argline":"git_index **out, git_repository *repo","line":271,"args":[{"type":"git_index **","comment":"Pointer to store the loaded index","name":"out"},{"type":"git_repository *","comment":"A repository object","name":"repo"}],"rawComments":"\n Get the Index file for this repository.\n\n If a custom index has not been set, the default\n index for the repository will be returned (the one\n located in `.git/index`).\n\n The index must be freed once it's no longer being used by\n the user.\n\n @param out Pointer to store the loaded index\n @param repo A repository object\n @return 0, or an error code\n\n","lineto":285,"description":"Get the Index file for this repository."},"git_index_open":{"return":{"type":"int","comment":"0 or an error code"},"group":"index","file":"index.h","sig":"git_index **::const char *","comments":"Since there is no ODB or working directory behind this index,\n any Index methods which rely on these (e.g. index_add) will\n fail with the GIT_EBAREINDEX error code.\n\n If you need to access the index of an actual repository,\n use the `git_repository_index` wrapper.\n\n The index must be freed once it's no longer in use.","argline":"git_index **index, const char *index_path","line":93,"args":[{"type":"git_index **","comment":"the pointer for the new index","name":"index"},{"type":"const char *","comment":"the path to the index file in disk","name":"index_path"}],"rawComments":"\n Create a new bare Git index object as a memory representation\n of the Git index file in 'index_path', without a repository\n to back it.\n\n Since there is no ODB or working directory behind this index,\n any Index methods which rely on these (e.g. index_add) will\n fail with the GIT_EBAREINDEX error code.\n\n If you need to access the index of an actual repository,\n use the `git_repository_index` wrapper.\n\n The index must be freed once it's no longer in use.\n\n @param index the pointer for the new index\n @param index_path the path to the index file in disk\n @return 0 or an error code\n\n","lineto":111,"description":"Create a new bare Git index object as a memory representation of the Git index file in 'index_path', without a repository to back it."},"GIT_EXTERN":{"return":{"type":"* http:","comment":""},"group":"GIT","file":"windows.h","sig":"void) gitwin_set_codepage(unsigned int","comments":"","argline":"void) gitwin_set_codepage(unsigned int codepage","line":37,"args":[{"type":"void) gitwin_set_codepage(unsigned int","comment":"numeric codepage identifier","name":"codepage"}],"rawComments":"\n @param codepage numeric codepage identifier\n\n","lineto":41,"description":""},"git_config_open_global":{"return":{"type":"int","comment":"0 or an error code"},"group":"config","file":"config.h","sig":"git_config **","comments":"Utility wrapper that calls `git_config_find_global`\n and opens the located file, if it exists.","argline":"git_config **out","line":82,"args":[{"type":"git_config **","comment":"Pointer to store the config instance","name":"out"}],"rawComments":"\n Open the global configuration file\n\n Utility wrapper that calls `git_config_find_global`\n and opens the located file, if it exists.\n\n @param out Pointer to store the config instance\n @return 0 or an error code\n\n","lineto":91,"description":"Open the global configuration file"},"git_note_create":{"return":{"type":"int","comment":"0 or an error code"},"group":"note","file":"notes.h","sig":"git_oid *::git_repository *::git_signature *::git_signature *::const char *::const git_oid *::const char *","comments":"","argline":"git_oid *out, git_repository *repo, git_signature *author, git_signature *committer, const char *notes_ref, const git_oid *oid, const char *note","line":54,"args":[{"type":"git_oid *","comment":"","name":"out"},{"type":"git_repository *","comment":"the Git repository","name":"repo"},{"type":"git_signature *","comment":"signature of the notes commit author","name":"author"},{"type":"git_signature *","comment":"signature of the notes commit committer","name":"committer"},{"type":"const char *","comment":"OID reference to update (optional); defaults to \"refs/notes/commits\"","name":"notes_ref"},{"type":"const git_oid *","comment":"The note to add for object oid","name":"oid"},{"type":"const char *","comment":"","name":"note"}],"rawComments":"\n Add a note for an object\n\n @param oid pointer to store the OID (optional); NULL in case of error\n @param repo the Git repository\n @param author signature of the notes commit author\n @param committer signature of the notes commit committer\n @param notes_ref OID reference to update (optional); defaults to \"refs/notes/commits\"\n @param oid The OID of the object\n @param oid The note to add for object oid\n\n @return 0 or an error code\n\n","lineto":70,"description":"Add a note for an object"},"git_diff_foreach":{"return":{"type":"int","comment":""},"group":"diff","file":"diff.h","sig":"git_diff_list *::void *::git_diff_file_fn::git_diff_hunk_fn::git_diff_data_fn","comments":"If the hunk and/or line callbacks are not NULL, then this will calculate\n text diffs for all files it thinks are not binary. If those are both\n NULL, then this will not bother with the text diffs, so it can be\n efficient.","argline":"git_diff_list *diff, void *cb_data, git_diff_file_fn file_cb, git_diff_hunk_fn hunk_cb, git_diff_data_fn line_cb","line":298,"args":[{"type":"git_diff_list *","comment":"","name":"diff"},{"type":"void *","comment":"","name":"cb_data"},{"type":"git_diff_file_fn","comment":"","name":"file_cb"},{"type":"git_diff_hunk_fn","comment":"","name":"hunk_cb"},{"type":"git_diff_data_fn","comment":"","name":"line_cb"}],"rawComments":"\n Iterate over a diff list issuing callbacks.\n\n If the hunk and/or line callbacks are not NULL, then this will calculate\n text diffs for all files it thinks are not binary. If those are both\n NULL, then this will not bother with the text diffs, so it can be\n efficient.\n\n","lineto":311,"description":"Iterate over a diff list issuing callbacks."},"git_object_owner":{"return":{"type":"git_repository *","comment":"the repository who owns this object"},"group":"object","file":"object.h","sig":"const git_object *","comments":"Freeing or calling `git_repository_close` on the\n returned pointer will invalidate the actual object.\n\n Any other operation may be run on the repository without\n affecting the object.","argline":"const git_object *obj","line":97,"args":[{"type":"const git_object *","comment":"the object","name":"obj"}],"rawComments":"\n Get the repository that owns this object\n\n Freeing or calling `git_repository_close` on the\n returned pointer will invalidate the actual object.\n\n Any other operation may be run on the repository without\n affecting the object.\n\n @param obj the object\n @return the repository who owns this object\n\n","lineto":109,"description":"Get the repository that owns this object"},"git_refspec_dst":{"return":{"type":"const char *","comment":"the refspec's destination specifier"},"group":"refspec","file":"refspec.h","sig":"const git_refspec *","comments":"","argline":"const git_refspec *refspec","line":30,"args":[{"type":"const git_refspec *","comment":"the refspec","name":"refspec"}],"rawComments":"\n Get the destination specifier\n\n @param refspec the refspec\n @return the refspec's destination specifier\n\n","lineto":36,"description":"Get the destination specifier"},"git_remote_update_tips":{"examples":{"network/fetch.c":["ex/v0.17.0/fetch.html#git_remote_update_tips-7"]},"return":{"type":"int","comment":""},"group":"remote","file":"remote.h","sig":"git_remote *::int(*)(const char *refname, const git_oid *a, const git_oid *b)","comments":"","argline":"git_remote *remote, int (*cb)(const char *refname, const git_oid *a, const git_oid *b)","line":187,"args":[{"type":"git_remote *","comment":"the remote to update","name":"remote"},{"type":"int(*)(const char *refname, const git_oid *a, const git_oid *b)","comment":"callback to run on each ref update. 'a' is the old value, 'b' is then new value","name":"cb"}],"rawComments":"\n Update the tips to the new state\n\n @param remote the remote to update\n @param cb callback to run on each ref update. 'a' is the old value, 'b' is then new value\n\n","lineto":193,"description":"Update the tips to the new state"},"git_config_get_mapped":{"return":{"type":"int","comment":"0 on success, error code otherwise"},"group":"config","file":"config.h","sig":"int *::git_config *::const char *::git_cvar_map *::size_t","comments":"This is a helper method to easily map different possible values\n to a variable to integer constants that easily identify them.\n\n A mapping array looks as follows:\n\n\tgit_cvar_map autocrlf_mapping[3] = {\n\t\t{GIT_CVAR_FALSE, NULL, GIT_AUTO_CRLF_FALSE},\n\t\t{GIT_CVAR_TRUE, NULL, GIT_AUTO_CRLF_TRUE},\n\t\t{GIT_CVAR_STRING, \"input\", GIT_AUTO_CRLF_INPUT},\n\t\t{GIT_CVAR_STRING, \"default\", GIT_AUTO_CRLF_DEFAULT}};\n\n On any \"false\" value for the variable (e.g. \"false\", \"FALSE\", \"no\"), the\n mapping will store `GIT_AUTO_CRLF_FALSE` in the `out` parameter.\n\n The same thing applies for any \"true\" value such as \"true\", \"yes\" or \"1\", storing\n the `GIT_AUTO_CRLF_TRUE` variable.\n\n Otherwise, if the value matches the string \"input\" (with case insensitive comparison),\n the given constant will be stored in `out`, and likewise for \"default\".\n\n If not a single match can be made to store in `out`, an error code will be\n returned.","argline":"int *out, git_config *cfg, const char *name, git_cvar_map *maps, size_t map_n","line":318,"args":[{"type":"int *","comment":"place to store the result of the mapping","name":"out"},{"type":"git_config *","comment":"config file to get the variables from","name":"cfg"},{"type":"const char *","comment":"name of the config variable to lookup","name":"name"},{"type":"git_cvar_map *","comment":"array of `git_cvar_map` objects specifying the possible mappings","name":"maps"},{"type":"size_t","comment":"number of mapping objects in `maps`","name":"map_n"}],"rawComments":"\n Query the value of a config variable and return it mapped to\n an integer constant.\n\n This is a helper method to easily map different possible values\n to a variable to integer constants that easily identify them.\n\n A mapping array looks as follows:\n\n\tgit_cvar_map autocrlf_mapping[3] = {\n\t\t{GIT_CVAR_FALSE, NULL, GIT_AUTO_CRLF_FALSE},\n\t\t{GIT_CVAR_TRUE, NULL, GIT_AUTO_CRLF_TRUE},\n\t\t{GIT_CVAR_STRING, \"input\", GIT_AUTO_CRLF_INPUT},\n\t\t{GIT_CVAR_STRING, \"default\", GIT_AUTO_CRLF_DEFAULT}};\n\n On any \"false\" value for the variable (e.g. \"false\", \"FALSE\", \"no\"), the\n mapping will store `GIT_AUTO_CRLF_FALSE` in the `out` parameter.\n\n The same thing applies for any \"true\" value such as \"true\", \"yes\" or \"1\", storing\n the `GIT_AUTO_CRLF_TRUE` variable.\n\n Otherwise, if the value matches the string \"input\" (with case insensitive comparison),\n the given constant will be stored in `out`, and likewise for \"default\".\n\n If not a single match can be made to store in `out`, an error code will be\n returned.\n\n @param out place to store the result of the mapping\n @param cfg config file to get the variables from\n @param name name of the config variable to lookup\n @param maps array of `git_cvar_map` objects specifying the possible mappings\n @param map_n number of mapping objects in `maps`\n @return 0 on success, error code otherwise\n\n","lineto":352,"description":"Query the value of a config variable and return it mapped to an integer constant."},"git_reference_list":{"return":{"type":"int","comment":"0 or an error code"},"group":"reference","file":"refs.h","sig":"git_strarray *::git_repository *::unsigned int","comments":"The listed references may be filtered by type, or using\n a bitwise OR of several types. Use the magic value\n `GIT_REF_LISTALL` to obtain all references, including\n packed ones.\n\n The string array will be filled with the names of all\n references; these values are owned by the user and\n should be free'd manually when no longer needed, using\n `git_strarray_free`.","argline":"git_strarray *array, git_repository *repo, unsigned int list_flags","line":238,"args":[{"type":"git_strarray *","comment":"Pointer to a git_strarray structure where the reference names will be stored","name":"array"},{"type":"git_repository *","comment":"Repository where to find the refs","name":"repo"},{"type":"unsigned int","comment":"Filtering flags for the reference listing.","name":"list_flags"}],"rawComments":"\n Fill a list with all the references that can be found\n in a repository.\n\n The listed references may be filtered by type, or using\n a bitwise OR of several types. Use the magic value\n `GIT_REF_LISTALL` to obtain all references, including\n packed ones.\n\n The string array will be filled with the names of all\n references; these values are owned by the user and\n should be free'd manually when no longer needed, using\n `git_strarray_free`.\n\n @param array Pointer to a git_strarray structure where\n\t\tthe reference names will be stored\n @param repo Repository where to find the refs\n @param list_flags Filtering flags for the reference\n\t\tlisting.\n @return 0 or an error code\n\n","lineto":259,"description":"Fill a list with all the references that can be found in a repository."},"git_tree_entry_type":{"return":{"type":"git_otype","comment":"the type of the pointed object"},"group":"tree","file":"tree.h","sig":"const git_tree_entry *","comments":"","argline":"const git_tree_entry *entry","line":130,"args":[{"type":"const git_tree_entry *","comment":"a tree entry","name":"entry"}],"rawComments":"\n Get the type of the object pointed by the entry\n\n @param entry a tree entry\n @return the type of the pointed object\n\n","lineto":136,"description":"Get the type of the object pointed by the entry"},"git_tag_message":{"examples":{"general.c":["ex/v0.17.0/general.html#git_tag_message-45"]},"return":{"type":"const char *","comment":"message of the tag"},"group":"tag","file":"tag.h","sig":"git_tag *","comments":"","argline":"git_tag *tag","line":124,"args":[{"type":"git_tag *","comment":"a previously loaded tag.","name":"tag"}],"rawComments":"\n Get the message of a tag\n\n @param tag a previously loaded tag.\n @return message of the tag\n\n","lineto":130,"description":"Get the message of a tag"},"git_status_file":{"return":{"type":"int","comment":"GIT_EINVALIDPATH when `path` points at a folder, GIT_ENOTFOUND when the file doesn't exist in any of HEAD, the index or the worktree, 0 otherwise"},"group":"status","file":"status.h","sig":"unsigned int *::git_repository *::const char *","comments":"","argline":"unsigned int *status_flags, git_repository *repo, const char *path","line":128,"args":[{"type":"unsigned int *","comment":"the status value","name":"status_flags"},{"type":"git_repository *","comment":"a repository object","name":"repo"},{"type":"const char *","comment":"the file to retrieve status for, rooted at the repo's workdir","name":"path"}],"rawComments":"\n Get file status for a single file\n\n @param status_flags the status value\n @param repo a repository object\n @param path the file to retrieve status for, rooted at the repo's workdir\n @return GIT_EINVALIDPATH when `path` points at a folder, GIT_ENOTFOUND when\n\t\tthe file doesn't exist in any of HEAD, the index or the worktree,\n\t\t0 otherwise\n\n","lineto":141,"description":"Get file status for a single file"},"git_odb_open_wstream":{"return":{"type":"int","comment":"0 if the stream was created; error code otherwise"},"group":"odb","file":"odb.h","sig":"git_odb_stream **::git_odb *::size_t::git_otype","comments":"The type and final length of the object must be specified\n when opening the stream.\n\n The returned stream will be of type `GIT_STREAM_WRONLY` and\n will have the following methods:\n\n\t\t- stream->write: write `n` bytes into the stream\n\t\t- stream->finalize_write: close the stream and store the object in\n\t\t\tthe odb\n\t\t- stream->free: free the stream\n\n The streaming write won't be effective until `stream->finalize_write`\n is called and returns without an error\n\n The stream must always be free'd or will leak memory.\n\n @see git_odb_stream","argline":"git_odb_stream **stream, git_odb *db, size_t size, git_otype type","line":195,"args":[{"type":"git_odb_stream **","comment":"pointer where to store the stream","name":"stream"},{"type":"git_odb *","comment":"object database where the stream will write","name":"db"},{"type":"size_t","comment":"final size of the object that will be written","name":"size"},{"type":"git_otype","comment":"type of the object that will be written","name":"type"}],"rawComments":"\n Open a stream to write an object into the ODB\n\n The type and final length of the object must be specified\n when opening the stream.\n\n The returned stream will be of type `GIT_STREAM_WRONLY` and\n will have the following methods:\n\n\t\t- stream->write: write `n` bytes into the stream\n\t\t- stream->finalize_write: close the stream and store the object in\n\t\t\tthe odb\n\t\t- stream->free: free the stream\n\n The streaming write won't be effective until `stream->finalize_write`\n is called and returns without an error\n\n The stream must always be free'd or will leak memory.\n\n @see git_odb_stream\n\n @param stream pointer where to store the stream\n @param db object database where the stream will write\n @param size final size of the object that will be written\n @param type type of the object that will be written\n @return 0 if the stream was created; error code otherwise\n\n","lineto":222,"description":"Open a stream to write an object into the ODB"},"git_remote_load":{"examples":{"network/ls-remote.c":["ex/v0.17.0/ls-remote.html#git_remote_load-4"],"network/fetch.c":["ex/v0.17.0/fetch.html#git_remote_load-8"]},"return":{"type":"int","comment":"0 or an error code"},"group":"remote","file":"remote.h","sig":"git_remote **::git_repository *::const char *","comments":"@param cfg the repository's configuration","argline":"git_remote **out, git_repository *repo, const char *name","line":48,"args":[{"type":"git_remote **","comment":"pointer to the new remote object","name":"out"},{"type":"git_repository *","comment":"","name":"repo"},{"type":"const char *","comment":"the remote's name","name":"name"}],"rawComments":"\n Get the information for a particular remote\n\n @param out pointer to the new remote object\n @param cfg the repository's configuration\n @param name the remote's name\n @return 0 or an error code\n\n","lineto":56,"description":"Get the information for a particular remote"},"git_refspec_src":{"return":{"type":"const char *","comment":"the refspec's source specifier"},"group":"refspec","file":"refspec.h","sig":"const git_refspec *","comments":"","argline":"const git_refspec *refspec","line":22,"args":[{"type":"const git_refspec *","comment":"the refspec","name":"refspec"}],"rawComments":"\n Get the source specifier\n\n @param refspec the refspec\n @return the refspec's source specifier\n\n","lineto":28,"description":"Get the source specifier"},"git_status_foreach_ext":{"return":{"type":"int","comment":""},"group":"status","file":"status.h","sig":"git_repository *::const git_status_options *::int(*)(const char *, unsigned int, void *)::void *","comments":"","argline":"git_repository *repo, const git_status_options *opts, int (*callback)(const char *, unsigned int, void *), void *payload","line":119,"args":[{"type":"git_repository *","comment":"","name":"repo"},{"type":"const git_status_options *","comment":"","name":"opts"},{"type":"int(*)(const char *, unsigned int, void *)","comment":"","name":"callback"},{"type":"void *","comment":"","name":"payload"}],"rawComments":"\n Gather file status information and run callbacks as requested.\n\n","lineto":126,"description":"Gather file status information and run callbacks as requested."},"git_blob_create_fromfile":{"return":{"type":"int","comment":"0 or an error code"},"group":"blob","file":"blob.h","sig":"git_oid *::git_repository *::const char *","comments":"","argline":"git_oid *oid, git_repository *repo, const char *path","line":93,"args":[{"type":"git_oid *","comment":"return the id of the written blob","name":"oid"},{"type":"git_repository *","comment":"repository where the blob will be written. this repository cannot be bare","name":"repo"},{"type":"const char *","comment":"file from which the blob will be created, relative to the repository's working dir","name":"path"}],"rawComments":"\n Read a file from the working folder of a repository\n and write it to the Object Database as a loose blob\n\n @param oid return the id of the written blob\n @param repo repository where the blob will be written.\n\tthis repository cannot be bare\n @param path file from which the blob will be created,\n\trelative to the repository's working dir\n @return 0 or an error code\n\n","lineto":104,"description":"Read a file from the working folder of a repository and write it to the Object Database as a loose blob"},"git_indexer_free":{"examples":{"network/index-pack.c":["ex/v0.17.0/index-pack.html#git_indexer_free-5"]},"return":{"type":"void","comment":""},"group":"indexer","file":"indexer.h","sig":"git_indexer *","comments":"","argline":"git_indexer *idx","line":112,"args":[{"type":"git_indexer *","comment":"the indexer to free","name":"idx"}],"rawComments":"\n Free the indexer and its resources\n\n @param idx the indexer to free\n\n","lineto":117,"description":"Free the indexer and its resources"},"git_attr_get":{"return":{"type":"int","comment":""},"group":"attr","file":"attr.h","sig":"const char **::git_repository *::uint32_t::const char *::const char *","comments":"","argline":"const char **value_out, git_repository *repo, uint32_t flags, const char *path, const char *name","line":111,"args":[{"type":"const char **","comment":"Output of the value of the attribute. Use the GIT_ATTR_... macros to test for TRUE, FALSE, UNSPECIFIED, etc. or just use the string value for attributes set to a value. You should NOT modify or free this value.","name":"value_out"},{"type":"git_repository *","comment":"The repository containing the path.","name":"repo"},{"type":"uint32_t","comment":"A combination of GIT_ATTR_CHECK... flags.","name":"flags"},{"type":"const char *","comment":"The path to check for attributes. Relative paths are interpreted relative to the repo root. The file does not have to exist, but if it does not, then it will be treated as a plain file (not a directory).","name":"path"},{"type":"const char *","comment":"The name of the attribute to look up.","name":"name"}],"rawComments":"\n Look up the value of one git attribute for path.\n\n @param value_out Output of the value of the attribute. Use the GIT_ATTR_...\n macros to test for TRUE, FALSE, UNSPECIFIED, etc. or just\n use the string value for attributes set to a value. You\n should NOT modify or free this value.\n @param repo The repository containing the path.\n @param flags A combination of GIT_ATTR_CHECK... flags.\n @param path The path to check for attributes. Relative paths are\n interpreted relative to the repo root. The file does\n not have to exist, but if it does not, then it will be\n treated as a plain file (not a directory).\n @param name The name of the attribute to look up.\n\n","lineto":131,"description":"Look up the value of one git attribute for path."},"git_note_default_ref":{"return":{"type":"int","comment":"0 or an error code"},"group":"note","file":"notes.h","sig":"const char **::git_repository *","comments":"","argline":"const char **out, git_repository *repo","line":95,"args":[{"type":"const char **","comment":"Pointer to the default notes reference","name":"out"},{"type":"git_repository *","comment":"The Git repository","name":"repo"}],"rawComments":"\n Get the default notes reference for a repository\n\n @param out Pointer to the default notes reference\n @param repo The Git repository\n\n @return 0 or an error code\n\n","lineto":103,"description":"Get the default notes reference for a repository"},"git_revwalk_reset":{"return":{"type":"void","comment":""},"group":"revwalk","file":"revwalk.h","sig":"git_revwalk *","comments":"This will clear all the pushed and hidden commits, and\n leave the walker in a blank state (just like at\n creation) ready to receive new commit pushes and\n start a new walk.\n\n The revision walk is automatically reset when a walk\n is over.","argline":"git_revwalk *walker","line":72,"args":[{"type":"git_revwalk *","comment":"handle to reset.","name":"walker"}],"rawComments":"\n Reset the revision walker for reuse.\n\n This will clear all the pushed and hidden commits, and\n leave the walker in a blank state (just like at\n creation) ready to receive new commit pushes and\n start a new walk.\n\n The revision walk is automatically reset when a walk\n is over.\n\n @param walker handle to reset.\n\n","lineto":85,"description":"Reset the revision walker for reuse."},"git_tag_peel":{"return":{"type":"int","comment":"0 or an error code"},"group":"tag","file":"tag.h","sig":"git_object **::git_tag *","comments":"The retrieved `tag_target` object is owned by the repository\n and should be closed with the `git_object_free` method.","argline":"git_object **tag_target, git_tag *tag","line":280,"args":[{"type":"git_object **","comment":"Pointer to the peeled git_object","name":"tag_target"},{"type":"git_tag *","comment":"The tag to be processed","name":"tag"}],"rawComments":"\n Recursively peel a tag until a non tag git_object\n is met\n\n The retrieved `tag_target` object is owned by the repository\n and should be closed with the `git_object_free` method.\n\n @param tag_target Pointer to the peeled git_object\n @param tag The tag to be processed\n @return 0 or an error code\n\n","lineto":293,"description":"Recursively peel a tag until a non tag git_object is met"},"git_odb_object_data":{"examples":{"general.c":["ex/v0.17.0/general.html#git_odb_object_data-46"]},"return":{"type":"const void *","comment":"a pointer to the data"},"group":"odb","file":"odb.h","sig":"git_odb_object *","comments":"This is the uncompressed, raw data as read from the ODB,\n without the leading header.\n\n This pointer is owned by the object and shall not be free'd.","argline":"git_odb_object *object","line":297,"args":[{"type":"git_odb_object *","comment":"the object","name":"object"}],"rawComments":"\n Return the data of an ODB object\n\n This is the uncompressed, raw data as read from the ODB,\n without the leading header.\n\n This pointer is owned by the object and shall not be free'd.\n\n @param object the object\n @return a pointer to the data\n\n","lineto":308,"description":"Return the data of an ODB object"},"git_reference_packall":{"return":{"type":"int","comment":"0 or an error code"},"group":"reference","file":"refs.h","sig":"git_repository *","comments":"This method will load into the cache all the loose\n references on the repository and update the\n `packed-refs` file with them.\n\n Once the `packed-refs` file has been written properly,\n the loose references will be removed from disk.","argline":"git_repository *repo","line":223,"args":[{"type":"git_repository *","comment":"Repository where the loose refs will be packed","name":"repo"}],"rawComments":"\n Pack all the loose references in the repository\n\n This method will load into the cache all the loose\n references on the repository and update the\n `packed-refs` file with them.\n\n Once the `packed-refs` file has been written properly,\n the loose references will be removed from disk.\n\n @param repo Repository where the loose refs will be packed\n @return 0 or an error code\n\n","lineto":236,"description":"Pack all the loose references in the repository"},"git_oid_tostr":{"return":{"type":"char *","comment":"the out buffer pointer, assuming no input parameter errors, otherwise a pointer to an empty string."},"group":"oid","file":"oid.h","sig":"char *::size_t::const git_oid *","comments":"If the buffer is smaller than GIT_OID_HEXSZ+1, then the resulting\n oid c-string will be truncated to n-1 characters. If there are\n any input parameter errors (out == NULL, n == 0, oid == NULL),\n then a pointer to an empty string is returned, so that the return\n value can always be printed.","argline":"char *out, size_t n, const git_oid *oid","line":107,"args":[{"type":"char *","comment":"the buffer into which the oid string is output.","name":"out"},{"type":"size_t","comment":"the size of the out buffer.","name":"n"},{"type":"const git_oid *","comment":"the oid structure to format.","name":"oid"}],"rawComments":"\n Format a git_oid into a buffer as a hex format c-string.\n\n If the buffer is smaller than GIT_OID_HEXSZ+1, then the resulting\n oid c-string will be truncated to n-1 characters. If there are\n any input parameter errors (out == NULL, n == 0, oid == NULL),\n then a pointer to an empty string is returned, so that the return\n value can always be printed.\n\n @param out the buffer into which the oid string is output.\n @param n the size of the out buffer.\n @param oid the oid structure to format.\n @return the out buffer pointer, assuming no input parameter\n\t\t\terrors, otherwise a pointer to an empty string.\n\n","lineto":122,"description":"Format a git_oid into a buffer as a hex format c-string."},"git_oid_shorten_free":{"return":{"type":"void","comment":""},"group":"oid","file":"oid.h","sig":"git_oid_shorten *","comments":"","argline":"git_oid_shorten *os","line":214,"args":[{"type":"git_oid_shorten *","comment":"a `git_oid_shorten` instance","name":"os"}],"rawComments":"\n Free an OID shortener instance\n\n @param os a `git_oid_shorten` instance\n\n","lineto":219,"description":"Free an OID shortener instance"},"git_reflog_entry_byindex":{"return":{"type":"const git_reflog_entry *","comment":"the entry; NULL if not found"},"group":"reflog","file":"reflog.h","sig":"git_reflog *::unsigned int","comments":"","argline":"git_reflog *reflog, unsigned int idx","line":78,"args":[{"type":"git_reflog *","comment":"a previously loaded reflog","name":"reflog"},{"type":"unsigned int","comment":"the position to lookup","name":"idx"}],"rawComments":"\n Lookup an entry by its index\n\n @param reflog a previously loaded reflog\n @param idx the position to lookup\n @return the entry; NULL if not found\n\n","lineto":85,"description":"Lookup an entry by its index"},"git_repository_head_orphan":{"return":{"type":"int","comment":"1 if the current branch is an orphan, 0 if it's not; error code if therewas an error"},"group":"repository","file":"repository.h","sig":"git_repository *","comments":"An orphan branch is one named from HEAD but which doesn't exist in\n the refs namespace, because it doesn't have any commit to point to.","argline":"git_repository *repo","line":138,"args":[{"type":"git_repository *","comment":"Repo to test","name":"repo"}],"rawComments":"\n Check if the current branch is an orphan\n\n An orphan branch is one named from HEAD but which doesn't exist in\n the refs namespace, because it doesn't have any commit to point to.\n\n @param repo Repo to test\n @return 1 if the current branch is an orphan, 0 if it's not; error\n code if therewas an error\n\n","lineto":148,"description":"Check if the current branch is an orphan"},"git_repository_free":{"examples":{"network/git2.c":["ex/v0.17.0/git2.html#git_repository_free-4"],"showindex.c":["ex/v0.17.0/showindex.html#git_repository_free-6"],"general.c":["ex/v0.17.0/general.html#git_repository_free-47"],"diff.c":["ex/v0.17.0/diff.html#git_repository_free-15"]},"return":{"type":"void","comment":""},"group":"repository","file":"repository.h","sig":"git_repository *","comments":"Note that after a repository is free'd, all the objects it has spawned\n will still exist until they are manually closed by the user\n with `git_object_free`, but accessing any of the attributes of\n an object without a backing repository will result in undefined\n behavior","argline":"git_repository *repo","line":87,"args":[{"type":"git_repository *","comment":"repository handle to close. If NULL nothing occurs.","name":"repo"}],"rawComments":"\n Free a previously allocated repository\n\n Note that after a repository is free'd, all the objects it has spawned\n will still exist until they are manually closed by the user\n with `git_object_free`, but accessing any of the attributes of\n an object without a backing repository will result in undefined\n behavior\n\n @param repo repository handle to close. If NULL nothing occurs.\n\n","lineto":98,"description":"Free a previously allocated repository"},"git_signature_dup":{"return":{"type":"git_signature *","comment":"a copy of sig, NULL on out of memory"},"group":"signature","file":"signature.h","sig":"const git_signature *","comments":"All internal strings are also duplicated.","argline":"const git_signature *sig","line":47,"args":[{"type":"const git_signature *","comment":"signature to duplicated","name":"sig"}],"rawComments":"\n Create a copy of an existing signature.\n\n All internal strings are also duplicated.\n @param sig signature to duplicated\n @return a copy of sig, NULL on out of memory\n\n","lineto":54,"description":"Create a copy of an existing signature."},"git_config_file__ondisk":{"return":{"type":"int","comment":""},"group":"config","file":"config.h","sig":"struct git_config_file **::const char *","comments":"These are the normal `.gitconfig` files that Core Git\n processes. Note that you first have to add this file to a\n configuration object before you can query it for configuration\n variables.","argline":"struct git_config_file **out, const char *path","line":93,"args":[{"type":"struct git_config_file **","comment":"the new backend","name":"out"},{"type":"const char *","comment":"where the config file is located","name":"path"}],"rawComments":"\n Create a configuration file backend for ondisk files\n\n These are the normal `.gitconfig` files that Core Git\n processes. Note that you first have to add this file to a\n configuration object before you can query it for configuration\n variables.\n\n @param out the new backend\n @param path where the config file is located\n\n","lineto":104,"description":"Create a configuration file backend for ondisk files"},"git_reference_rename":{"return":{"type":"int","comment":"0 or an error code"},"group":"reference","file":"refs.h","sig":"git_reference *::const char *::int","comments":"This method works for both direct and symbolic references.\n The new name will be checked for validity and may be\n modified into a normalized form.\n\n The given git_reference will be updated in place.\n\n The reference will be immediately renamed in-memory\n and on disk.\n\n If the `force` flag is not enabled, and there's already\n a reference with the given name, the renaming will fail.\n\n IMPORTANT:\n The user needs to write a proper reflog entry if the\n reflog is enabled for the repository. We only rename\n the reflog if it exists.","argline":"git_reference *ref, const char *new_name, int force","line":182,"args":[{"type":"git_reference *","comment":"The reference to rename","name":"ref"},{"type":"const char *","comment":"The new name for the reference","name":"new_name"},{"type":"int","comment":"Overwrite an existing reference","name":"force"}],"rawComments":"\n Rename an existing reference\n\n This method works for both direct and symbolic references.\n The new name will be checked for validity and may be\n modified into a normalized form.\n\n The given git_reference will be updated in place.\n\n The reference will be immediately renamed in-memory\n and on disk.\n\n If the `force` flag is not enabled, and there's already\n a reference with the given name, the renaming will fail.\n\n IMPORTANT:\n The user needs to write a proper reflog entry if the\n reflog is enabled for the repository. We only rename\n the reflog if it exists.\n\n @param ref The reference to rename\n @param new_name The new name for the reference\n @param force Overwrite an existing reference\n @return 0 or an error code\n\n\n","lineto":208,"description":"Rename an existing reference"},"git_commit_lookup_prefix":{"return":{"type":"int","comment":"0 or an error code"},"group":"commit","file":"commit.h","sig":"git_commit **::git_repository *::const git_oid *::unsigned","comments":"@see git_object_lookup_prefix","argline":"git_commit **commit, git_repository *repo, const git_oid *id, unsigned len","line":38,"args":[{"type":"git_commit **","comment":"pointer to the looked up commit","name":"commit"},{"type":"git_repository *","comment":"the repo to use when locating the commit.","name":"repo"},{"type":"const git_oid *","comment":"identity of the commit to locate. If the object is an annotated tag it will be peeled back to the commit.","name":"id"},{"type":"unsigned","comment":"the length of the short identifier","name":"len"}],"rawComments":"\n Lookup a commit object from a repository,\n given a prefix of its identifier (short id).\n\n @see git_object_lookup_prefix\n\n @param commit pointer to the looked up commit\n @param repo the repo to use when locating the commit.\n @param id identity of the commit to locate. If the object is\n\t\tan annotated tag it will be peeled back to the commit.\n @param len the length of the short identifier\n @return 0 or an error code\n\n","lineto":54,"description":"Lookup a commit object from a repository, given a prefix of its identifier (short id)."},"git_config_get_multivar":{"return":{"type":"int","comment":""},"group":"config","file":"config.h","sig":"git_config *::const char *::const char *::int(*)(const char *, void *)::void *","comments":"The callback will be called on each variable found","argline":"git_config *cfg, const char *name, const char *regexp, int (*fn)(const char *, void *), void *data","line":223,"args":[{"type":"git_config *","comment":"where to look for the variable","name":"cfg"},{"type":"const char *","comment":"the variable's name","name":"name"},{"type":"const char *","comment":"regular expression to filter which variables we're interested in. Use NULL to indicate all","name":"regexp"},{"type":"int(*)(const char *, void *)","comment":"the function to be called on each value of the variable","name":"fn"},{"type":"void *","comment":"opaque pointer to pass to the callback","name":"data"}],"rawComments":"\n Get each value of a multivar.\n\n The callback will be called on each variable found\n\n @param cfg where to look for the variable\n @param name the variable's name\n @param regexp regular expression to filter which variables we're\n interested in. Use NULL to indicate all\n @param fn the function to be called on each value of the variable\n @param data opaque pointer to pass to the callback\n\n","lineto":235,"description":"Get each value of a multivar."},"git_reflog_entry_oidold":{"return":{"type":"const git_oid *","comment":"the old oid"},"group":"reflog","file":"reflog.h","sig":"const git_reflog_entry *","comments":"","argline":"const git_reflog_entry *entry","line":87,"args":[{"type":"const git_reflog_entry *","comment":"a reflog entry","name":"entry"}],"rawComments":"\n Get the old oid\n\n @param entry a reflog entry\n @return the old oid\n\n","lineto":93,"description":"Get the old oid"},"git_signature_now":{"return":{"type":"int","comment":"0 or an error code"},"group":"signature","file":"signature.h","sig":"git_signature **::const char *::const char *","comments":"","argline":"git_signature **sig_out, const char *name, const char *email","line":35,"args":[{"type":"git_signature **","comment":"new signature, in case of error NULL","name":"sig_out"},{"type":"const char *","comment":"name of the person","name":"name"},{"type":"const char *","comment":"email of the person","name":"email"}],"rawComments":"\n Create a new action signature with a timestamp of 'now'. The\n signature must be freed manually or using git_signature_free\n\n @param sig_out new signature, in case of error NULL\n @param name name of the person\n @param email email of the person\n @return 0 or an error code\n\n","lineto":44,"description":"Create a new action signature with a timestamp of 'now'. The signature must be freed manually or using git_signature_free"},"git_diff_merge":{"examples":{"diff.c":["ex/v0.17.0/diff.html#git_diff_merge-16"]},"return":{"type":"int","comment":""},"group":"diff","file":"diff.h","sig":"git_diff_list *::const git_diff_list *","comments":"This merges items from the \"from\" list into the \"onto\" list. The\n resulting diff list will have all items that appear in either list.\n If an item appears in both lists, then it will be \"merged\" to appear\n as if the old version was from the \"onto\" list and the new version\n is from the \"from\" list (with the exception that if the item has a\n pending DELETE in the middle, then it will show as deleted).","argline":"git_diff_list *onto, const git_diff_list *from","line":271,"args":[{"type":"git_diff_list *","comment":"Diff to merge into.","name":"onto"},{"type":"const git_diff_list *","comment":"Diff to merge.","name":"from"}],"rawComments":"\n Merge one diff list into another.\n\n This merges items from the \"from\" list into the \"onto\" list. The\n resulting diff list will have all items that appear in either list.\n If an item appears in both lists, then it will be \"merged\" to appear\n as if the old version was from the \"onto\" list and the new version\n is from the \"from\" list (with the exception that if the item has a\n pending DELETE in the middle, then it will show as deleted).\n\n @param onto Diff to merge into.\n @param from Diff to merge.\n\n","lineto":286,"description":"Merge one diff list into another."},"git_odb_hashfile":{"return":{"type":"int","comment":"0 or an error code"},"group":"odb","file":"odb.h","sig":"git_oid *::const char *::git_otype","comments":"","argline":"git_oid *out, const char *path, git_otype type","line":264,"args":[{"type":"git_oid *","comment":"oid structure the result is written into.","name":"out"},{"type":"const char *","comment":"file to read and determine object id for","name":"path"},{"type":"git_otype","comment":"the type of the object that will be hashed","name":"type"}],"rawComments":"\n Read a file from disk and fill a git_oid with the object id\n that the file would have if it were written to the Object\n Database as an object of the given type. Similar functionality\n to git.git's `git hash-object` without the `-w` flag.\n\n @param out oid structure the result is written into.\n @param path file to read and determine object id for\n @param type the type of the object that will be hashed\n @return 0 or an error code\n\n","lineto":275,"description":"Read a file from disk and fill a git_oid with the object id that the file would have if it were written to the Object Database as an object of the given type. Similar functionality to git.git's `git hash-object` without the `-w` flag."},"git_indexer_run":{"examples":{"network/index-pack.c":["ex/v0.17.0/index-pack.html#git_indexer_run-6"]},"return":{"type":"int","comment":""},"group":"indexer","file":"indexer.h","sig":"git_indexer *::git_indexer_stats *","comments":"Indexing a packfile can be very expensive so this function is\n expected to be run in a worker thread and the stats used to provide\n feedback the user.","argline":"git_indexer *idx, git_indexer_stats *stats","line":80,"args":[{"type":"git_indexer *","comment":"the indexer instance","name":"idx"},{"type":"git_indexer_stats *","comment":"storage for the running state","name":"stats"}],"rawComments":"\n Iterate over the objects in the packfile and extract the information\n\n Indexing a packfile can be very expensive so this function is\n expected to be run in a worker thread and the stats used to provide\n feedback the user.\n\n @param idx the indexer instance\n @param stats storage for the running state\n\n","lineto":90,"description":"Iterate over the objects in the packfile and extract the information"},"git_tag_lookup_prefix":{"return":{"type":"int","comment":"0 or an error code"},"group":"tag","file":"tag.h","sig":"git_tag **::git_repository *::const git_oid *::unsigned int","comments":"@see git_object_lookup_prefix","argline":"git_tag **tag, git_repository *repo, const git_oid *id, unsigned int len","line":37,"args":[{"type":"git_tag **","comment":"pointer to the looked up tag","name":"tag"},{"type":"git_repository *","comment":"the repo to use when locating the tag.","name":"repo"},{"type":"const git_oid *","comment":"identity of the tag to locate.","name":"id"},{"type":"unsigned int","comment":"the length of the short identifier","name":"len"}],"rawComments":"\n Lookup a tag object from the repository,\n given a prefix of its identifier (short id).\n\n @see git_object_lookup_prefix\n\n @param tag pointer to the looked up tag\n @param repo the repo to use when locating the tag.\n @param id identity of the tag to locate.\n @param len the length of the short identifier\n @return 0 or an error code\n\n","lineto":52,"description":"Lookup a tag object from the repository, given a prefix of its identifier (short id)."},"git_branch_create":{"return":{"type":"int","comment":"0 or an error code. A proper reference is written in the refs/heads namespace pointing to the provided target commit."},"group":"branch","file":"branch.h","sig":"git_oid *::git_repository *::const char *::const git_object *::int","comments":"A new direct reference will be created pointing to\n this target commit. If `force` is true and a reference\n already exists with the given name, it'll be replaced.","argline":"git_oid *oid_out, git_repository *repo, const char *branch_name, const git_object *target, int force","line":22,"args":[{"type":"git_oid *","comment":"Pointer where to store the OID of the target commit.","name":"oid_out"},{"type":"git_repository *","comment":"Repository where to store the branch.","name":"repo"},{"type":"const char *","comment":"Name for the branch; this name is validated for consistency. It should also not conflict with an already existing branch name.","name":"branch_name"},{"type":"const git_object *","comment":"Object to which this branch should point. This object must belong to the given `repo` and can either be a git_commit or a git_tag. When a git_tag is being passed, it should be dereferencable to a git_commit which oid will be used as the target of the branch.","name":"target"},{"type":"int","comment":"Overwrite existing branch.","name":"force"}],"rawComments":"\n Create a new branch pointing at a target commit\n\n A new direct reference will be created pointing to\n this target commit. If `force` is true and a reference\n already exists with the given name, it'll be replaced.\n\n @param oid_out Pointer where to store the OID of the target commit.\n\n @param repo Repository where to store the branch.\n\n @param branch_name Name for the branch; this name is\n validated for consistency. It should also not conflict with\n an already existing branch name.\n\n @param target Object to which this branch should point. This object\n must belong to the given `repo` and can either be a git_commit or a\n git_tag. When a git_tag is being passed, it should be dereferencable\n to a git_commit which oid will be used as the target of the branch.\n\n @param force Overwrite existing branch.\n\n @return 0 or an error code.\n A proper reference is written in the refs/heads namespace\n pointing to the provided target commit.\n\n","lineto":53,"description":"Create a new branch pointing at a target commit"},"git_indexer_write":{"examples":{"network/index-pack.c":["ex/v0.17.0/index-pack.html#git_indexer_write-7"]},"return":{"type":"int","comment":""},"group":"indexer","file":"indexer.h","sig":"git_indexer *","comments":"The file will be stored as pack-$hash.idx in the same directory as\n the packfile.","argline":"git_indexer *idx","line":92,"args":[{"type":"git_indexer *","comment":"the indexer instance","name":"idx"}],"rawComments":"\n Write the index file to disk.\n\n The file will be stored as pack-$hash.idx in the same directory as\n the packfile.\n\n @param idx the indexer instance\n\n","lineto":100,"description":"Write the index file to disk."},"git_object_lookup":{"examples":{"diff.c":["ex/v0.17.0/diff.html#git_object_lookup-17"]},"return":{"type":"int","comment":"a reference to the object"},"group":"object","file":"object.h","sig":"git_object **::git_repository *::const git_oid *::git_otype","comments":"The generated reference is owned by the repository and\n should be closed with the `git_object_free` method\n instead of free'd manually.\n\n The 'type' parameter must match the type of the object\n in the odb; the method will fail otherwise.\n The special value 'GIT_OBJ_ANY' may be passed to let\n the method guess the object's type.","argline":"git_object **object, git_repository *repo, const git_oid *id, git_otype type","line":23,"args":[{"type":"git_object **","comment":"pointer to the looked-up object","name":"object"},{"type":"git_repository *","comment":"the repository to look up the object","name":"repo"},{"type":"const git_oid *","comment":"the unique identifier for the object","name":"id"},{"type":"git_otype","comment":"the type of the object","name":"type"}],"rawComments":"\n Lookup a reference to one of the objects in a repostory.\n\n The generated reference is owned by the repository and\n should be closed with the `git_object_free` method\n instead of free'd manually.\n\n The 'type' parameter must match the type of the object\n in the odb; the method will fail otherwise.\n The special value 'GIT_OBJ_ANY' may be passed to let\n the method guess the object's type.\n\n @param object pointer to the looked-up object\n @param repo the repository to look up the object\n @param id the unique identifier for the object\n @param type the type of the object\n @return a reference to the object\n\n","lineto":45,"description":"Lookup a reference to one of the objects in a repostory."},"git_reference_name":{"return":{"type":"const char *","comment":"the full name for the ref"},"group":"reference","file":"refs.h","sig":"git_reference *","comments":"","argline":"git_reference *ref","line":116,"args":[{"type":"git_reference *","comment":"The reference","name":"ref"}],"rawComments":"\n Get the full name of a reference\n\n @param ref The reference\n @return the full name for the ref\n\n","lineto":122,"description":"Get the full name of a reference"},"git_attr_add_macro":{"return":{"type":"int","comment":""},"group":"attr","file":"attr.h","sig":"git_repository *::const char *::const char *","comments":"Macros will automatically be loaded from the top level `.gitattributes`\n file of the repository (plus the build-in \"binary\" macro). This\n function allows you to add others. For example, to add the default\n macro, you would call:\n\n git_attr_add_macro(repo, \"binary\", \"-diff -crlf\");","argline":"git_repository *repo, const char *name, const char *values","line":206,"args":[{"type":"git_repository *","comment":"","name":"repo"},{"type":"const char *","comment":"","name":"name"},{"type":"const char *","comment":"","name":"values"}],"rawComments":"\n Add a macro definition.\n\n Macros will automatically be loaded from the top level `.gitattributes`\n file of the repository (plus the build-in \"binary\" macro). This\n function allows you to add others. For example, to add the default\n macro, you would call:\n\n git_attr_add_macro(repo, \"binary\", \"-diff -crlf\");\n\n","lineto":219,"description":"Add a macro definition."},"git_reference_cmp":{"return":{"type":"int","comment":"0 if the same, else a stable but meaningless ordering."},"group":"reference","file":"refs.h","sig":"git_reference *::git_reference *","comments":"","argline":"git_reference *ref1, git_reference *ref2","line":318,"args":[{"type":"git_reference *","comment":"The first git_reference","name":"ref1"},{"type":"git_reference *","comment":"The second git_reference","name":"ref2"}],"rawComments":"\n Compare two references.\n\n @param ref1 The first git_reference\n @param ref2 The second git_reference\n @return 0 if the same, else a stable but meaningless ordering.\n\n","lineto":325,"description":"Compare two references."},"git_oid_shorten_add":{"return":{"type":"int","comment":"the minimal length to uniquely identify all OIDs added so far to the set; or an error code (<0) if an error occurs."},"group":"oid","file":"oid.h","sig":"git_oid_shorten *::const char *","comments":"The OID is expected to be a 40-char hexadecimal string.\n The OID is owned by the user and will not be modified\n or freed.\n\n For performance reasons, there is a hard-limit of how many\n OIDs can be added to a single set (around ~22000, assuming\n a mostly randomized distribution), which should be enough\n for any kind of program, and keeps the algorithm fast and\n memory-efficient.\n\n Attempting to add more than those OIDs will result in a\n GIT_ENOMEM error","argline":"git_oid_shorten *os, const char *text_oid","line":188,"args":[{"type":"git_oid_shorten *","comment":"a `git_oid_shorten` instance","name":"os"},{"type":"const char *","comment":"an OID in text form","name":"text_oid"}],"rawComments":"\n Add a new OID to set of shortened OIDs and calculate\n the minimal length to uniquely identify all the OIDs in\n the set.\n\n The OID is expected to be a 40-char hexadecimal string.\n The OID is owned by the user and will not be modified\n or freed.\n\n For performance reasons, there is a hard-limit of how many\n OIDs can be added to a single set (around ~22000, assuming\n a mostly randomized distribution), which should be enough\n for any kind of program, and keeps the algorithm fast and\n memory-efficient.\n\n Attempting to add more than those OIDs will result in a\n GIT_ENOMEM error\n\n @param os a `git_oid_shorten` instance\n @param text_oid an OID in text form\n @return the minimal length to uniquely identify all OIDs\n\t\tadded so far to the set; or an error code (<0) if an\n\t\terror occurs.\n\n","lineto":212,"description":"Add a new OID to set of shortened OIDs and calculate the minimal length to uniquely identify all the OIDs in the set."},"git_index_get":{"examples":{"showindex.c":["ex/v0.17.0/showindex.html#git_index_get-7"],"general.c":["ex/v0.17.0/general.html#git_index_get-48"]},"return":{"type":"git_index_entry *","comment":"a pointer to the entry; NULL if out of bounds"},"group":"index","file":"index.h","sig":"git_index *::unsigned int","comments":"This entry can be modified, and the changes will be written\n back to disk on the next write() call.\n\n The entry should not be freed by the caller.","argline":"git_index *index, unsigned int n","line":241,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"},{"type":"unsigned int","comment":"the position of the entry","name":"n"}],"rawComments":"\n Get a pointer to one of the entries in the index\n\n This entry can be modified, and the changes will be written\n back to disk on the next write() call.\n\n The entry should not be freed by the caller.\n\n @param index an existing index object\n @param n the position of the entry\n @return a pointer to the entry; NULL if out of bounds\n\n","lineto":253,"description":"Get a pointer to one of the entries in the index"},"git_remote_connect":{"examples":{"network/ls-remote.c":["ex/v0.17.0/ls-remote.html#git_remote_connect-5","ex/v0.17.0/ls-remote.html#git_remote_connect-6"],"network/fetch.c":["ex/v0.17.0/fetch.html#git_remote_connect-9"]},"return":{"type":"int","comment":"0 or an error code"},"group":"remote","file":"remote.h","sig":"git_remote *::int","comments":"The transport is selected based on the URL. The direction argument\n is due to a limitation of the git protocol (over TCP or SSH) which\n starts up a specific binary which can only do the one or the other.","argline":"git_remote *remote, int direction","line":117,"args":[{"type":"git_remote *","comment":"the remote to connect to","name":"remote"},{"type":"int","comment":"whether you want to receive or send data","name":"direction"}],"rawComments":"\n Open a connection to a remote\n\n The transport is selected based on the URL. The direction argument\n is due to a limitation of the git protocol (over TCP or SSH) which\n starts up a specific binary which can only do the one or the other.\n\n @param remote the remote to connect to\n @param direction whether you want to receive or send data\n @return 0 or an error code\n\n","lineto":128,"description":"Open a connection to a remote"},"git_commit_parentcount":{"examples":{"general.c":["ex/v0.17.0/general.html#git_commit_parentcount-49"]},"return":{"type":"unsigned int","comment":"integer of count of parents"},"group":"commit","file":"commit.h","sig":"git_commit *","comments":"","argline":"git_commit *commit","line":152,"args":[{"type":"git_commit *","comment":"a previously loaded commit.","name":"commit"}],"rawComments":"\n Get the number of parents of this commit\n\n @param commit a previously loaded commit.\n @return integer of count of parents\n\n","lineto":158,"description":"Get the number of parents of this commit"},"git_reference_is_packed":{"return":{"type":"int","comment":"0 in case it's not packed; 1 otherwise"},"group":"reference","file":"refs.h","sig":"git_reference *","comments":"","argline":"git_reference *ref","line":283,"args":[{"type":"git_reference *","comment":"A git reference","name":"ref"}],"rawComments":"\n Check if a reference has been loaded from a packfile\n\n @param ref A git reference\n @return 0 in case it's not packed; 1 otherwise\n\n","lineto":289,"description":"Check if a reference has been loaded from a packfile"},"git_reflog_read":{"return":{"type":"int","comment":"0 or an error code"},"group":"reflog","file":"reflog.h","sig":"git_reflog **::git_reference *","comments":"The reflog must be freed manually by using\n git_reflog_free().","argline":"git_reflog **reflog, git_reference *ref","line":23,"args":[{"type":"git_reflog **","comment":"pointer to reflog","name":"reflog"},{"type":"git_reference *","comment":"reference to read the reflog for","name":"ref"}],"rawComments":"\n Read the reflog for the given reference\n\n The reflog must be freed manually by using\n git_reflog_free().\n\n @param reflog pointer to reflog\n @param ref reference to read the reflog for\n @return 0 or an error code\n\n","lineto":33,"description":"Read the reflog for the given reference"},"git_odb_read":{"examples":{"general.c":["ex/v0.17.0/general.html#git_odb_read-50"]},"return":{"type":"int","comment":""},"group":"odb","file":"odb.h","sig":"git_odb_object **::git_odb *::const git_oid *","comments":"This method queries all available ODB backends\n trying to read the given OID.\n\n The returned object is reference counted and\n internally cached, so it should be closed\n by the user once it's no longer in use.\n\n @return\n - 0 if the object was read;\n - GIT_ENOTFOUND if the object is not in the database.","argline":"git_odb_object **out, git_odb *db, const git_oid *id","line":97,"args":[{"type":"git_odb_object **","comment":"pointer where to store the read object","name":"out"},{"type":"git_odb *","comment":"database to search for the object in.","name":"db"},{"type":"const git_oid *","comment":"identity of the object to read.","name":"id"}],"rawComments":"\n Read an object from the database.\n\n This method queries all available ODB backends\n trying to read the given OID.\n\n The returned object is reference counted and\n internally cached, so it should be closed\n by the user once it's no longer in use.\n\n @param out pointer where to store the read object\n @param db database to search for the object in.\n @param id identity of the object to read.\n @return\n - 0 if the object was read;\n - GIT_ENOTFOUND if the object is not in the database.\n\n","lineto":114,"description":"Read an object from the database."},"git_attr_cache_flush":{"return":{"type":"void","comment":""},"group":"attr","file":"attr.h","sig":"git_repository *","comments":"Call this if you have reason to believe that the attributes files on\n disk no longer match the cached contents of memory. This will cause\n the attributes files to be reloaded the next time that an attribute\n access function is called.","argline":"git_repository *repo","line":195,"args":[{"type":"git_repository *","comment":"","name":"repo"}],"rawComments":"\n Flush the gitattributes cache.\n\n Call this if you have reason to believe that the attributes files on\n disk no longer match the cached contents of memory. This will cause\n the attributes files to be reloaded the next time that an attribute\n access function is called.\n\n","lineto":204,"description":"Flush the gitattributes cache."},"git_odb_hash":{"return":{"type":"int","comment":"0 or an error code"},"group":"odb","file":"odb.h","sig":"git_oid *::const void *::size_t::git_otype","comments":"The resulting SHA-1 OID will the itentifier for the data\n buffer as if the data buffer it were to written to the ODB.","argline":"git_oid *id, const void *data, size_t len, git_otype type","line":250,"args":[{"type":"git_oid *","comment":"the resulting object-ID.","name":"id"},{"type":"const void *","comment":"data to hash","name":"data"},{"type":"size_t","comment":"size of the data","name":"len"},{"type":"git_otype","comment":"of the data to hash","name":"type"}],"rawComments":"\n Determine the object-ID (sha1 hash) of a data buffer\n\n The resulting SHA-1 OID will the itentifier for the data\n buffer as if the data buffer it were to written to the ODB.\n\n @param id the resulting object-ID.\n @param data data to hash\n @param len size of the data\n @param type of the data to hash\n @return 0 or an error code\n\n","lineto":262,"description":"Determine the object-ID (sha1 hash) of a data buffer"},"git_revwalk_new":{"examples":{"general.c":["ex/v0.17.0/general.html#git_revwalk_new-51"]},"return":{"type":"int","comment":"0 or an error code"},"group":"revwalk","file":"revwalk.h","sig":"git_revwalk **::git_repository *","comments":"This revision walker uses a custom memory pool and an internal\n commit cache, so it is relatively expensive to allocate.\n\n For maximum performance, this revision walker should be\n reused for different walks.\n\n This revision walker is *not* thread safe: it may only be\n used to walk a repository on a single thread; however,\n it is possible to have several revision walkers in\n several different threads walking the same repository.","argline":"git_revwalk **walker, git_repository *repo","line":52,"args":[{"type":"git_revwalk **","comment":"pointer to the new revision walker","name":"walker"},{"type":"git_repository *","comment":"the repo to walk through","name":"repo"}],"rawComments":"\n Allocate a new revision walker to iterate through a repo.\n\n This revision walker uses a custom memory pool and an internal\n commit cache, so it is relatively expensive to allocate.\n\n For maximum performance, this revision walker should be\n reused for different walks.\n\n This revision walker is *not* thread safe: it may only be\n used to walk a repository on a single thread; however,\n it is possible to have several revision walkers in\n several different threads walking the same repository.\n\n @param walker pointer to the new revision walker\n @param repo the repo to walk through\n @return 0 or an error code\n\n","lineto":70,"description":"Allocate a new revision walker to iterate through a repo."},"git_reference_resolve":{"examples":{"diff.c":["ex/v0.17.0/diff.html#git_reference_resolve-18"]},"return":{"type":"int","comment":"0 or an error code"},"group":"reference","file":"refs.h","sig":"git_reference **::git_reference *","comments":"Thie method iteratively peels a symbolic reference\n until it resolves to a direct reference to an OID.\n\n The peeled reference is returned in the `resolved_ref`\n argument, and must be freed manually once it's no longer\n needed.\n\n If a direct reference is passed as an argument,\n a copy of that reference is returned. This copy must\n be manually freed too.","argline":"git_reference **resolved_ref, git_reference *ref","line":124,"args":[{"type":"git_reference **","comment":"Pointer to the peeled reference","name":"resolved_ref"},{"type":"git_reference *","comment":"The reference","name":"ref"}],"rawComments":"\n Resolve a symbolic reference\n\n Thie method iteratively peels a symbolic reference\n until it resolves to a direct reference to an OID.\n\n The peeled reference is returned in the `resolved_ref`\n argument, and must be freed manually once it's no longer\n needed.\n\n If a direct reference is passed as an argument,\n a copy of that reference is returned. This copy must\n be manually freed too.\n\n @param resolved_ref Pointer to the peeled reference\n @param ref The reference\n @return 0 or an error code\n\n","lineto":142,"description":"Resolve a symbolic reference"},"git_refspec_transform":{"return":{"type":"int","comment":"0, GIT_EBUFS or another error"},"group":"refspec","file":"refspec.h","sig":"char *::size_t::const git_refspec *::const char *","comments":"","argline":"char *out, size_t outlen, const git_refspec *spec, const char *name","line":47,"args":[{"type":"char *","comment":"where to store the target name","name":"out"},{"type":"size_t","comment":"the size ouf the `out` buffer","name":"outlen"},{"type":"const git_refspec *","comment":"the refspec","name":"spec"},{"type":"const char *","comment":"the name of the reference to transform","name":"name"}],"rawComments":"\n Transform a reference to its target following the refspec's rules\n\n @param out where to store the target name\n @param outlen the size ouf the `out` buffer\n @param spec the refspec\n @param name the name of the reference to transform\n @return 0, GIT_EBUFS or another error\n\n","lineto":58,"description":"Transform a reference to its target following the refspec's rules"},"git_config_find_global":{"return":{"type":"int","comment":"0 if a global configuration file has been found. Its path will be stored in `buffer`."},"group":"config","file":"config.h","sig":"char *::size_t","comments":"The user or global configuration file is usually\n located in `$HOME/.gitconfig`.\n\n This method will try to guess the full path to that\n file, if the file exists. The returned path\n may be used on any `git_config` call to load the\n global configuration file.","argline":"char *global_config_path, size_t length","line":53,"args":[{"type":"char *","comment":"Buffer of GIT_PATH_MAX length to store the path","name":"global_config_path"},{"type":"size_t","comment":"","name":"length"}],"rawComments":"\n Locate the path to the global configuration file\n\n The user or global configuration file is usually\n located in `$HOME/.gitconfig`.\n\n This method will try to guess the full path to that\n file, if the file exists. The returned path\n may be used on any `git_config` call to load the\n global configuration file.\n\n @param global_config_path Buffer of GIT_PATH_MAX length to store the path\n @return 0 if a global configuration file has been\n\tfound. Its path will be stored in `buffer`.\n\n","lineto":68,"description":"Locate the path to the global configuration file"},"git_revwalk_push_head":{"return":{"type":"int","comment":"0 or an error code"},"group":"revwalk","file":"revwalk.h","sig":"git_revwalk *","comments":"","argline":"git_revwalk *walk","line":119,"args":[{"type":"git_revwalk *","comment":"the walker being used for the traversal","name":"walk"}],"rawComments":"\n Push the repository's HEAD\n\n @param walk the walker being used for the traversal\n @return 0 or an error code\n\n","lineto":125,"description":"Push the repository's HEAD"},"git_blob_lookup_prefix":{"return":{"type":"int","comment":"0 or an error code"},"group":"blob","file":"blob.h","sig":"git_blob **::git_repository *::const git_oid *::unsigned int","comments":"@see git_object_lookup_prefix","argline":"git_blob **blob, git_repository *repo, const git_oid *id, unsigned int len","line":37,"args":[{"type":"git_blob **","comment":"pointer to the looked up blob","name":"blob"},{"type":"git_repository *","comment":"the repo to use when locating the blob.","name":"repo"},{"type":"const git_oid *","comment":"identity of the blob to locate.","name":"id"},{"type":"unsigned int","comment":"the length of the short identifier","name":"len"}],"rawComments":"\n Lookup a blob object from a repository,\n given a prefix of its identifier (short id).\n\n @see git_object_lookup_prefix\n\n @param blob pointer to the looked up blob\n @param repo the repo to use when locating the blob.\n @param id identity of the blob to locate.\n @param len the length of the short identifier\n @return 0 or an error code\n\n","lineto":52,"description":"Lookup a blob object from a repository, given a prefix of its identifier (short id)."},"git_reflog_write":{"return":{"type":"int","comment":"0 or an error code"},"group":"reflog","file":"reflog.h","sig":"git_reference *::const git_oid *::const git_signature *::const char *","comments":"If there is no reflog file for the given\n reference yet, it will be created.\n\n `oid_old` may be NULL in case it's a new reference.\n\n `msg` is optional and can be NULL.","argline":"git_reference *ref, const git_oid *oid_old, const git_signature *committer, const char *msg","line":35,"args":[{"type":"git_reference *","comment":"the changed reference","name":"ref"},{"type":"const git_oid *","comment":"the OID the reference was pointing to","name":"oid_old"},{"type":"const git_signature *","comment":"the signature of the committer","name":"committer"},{"type":"const char *","comment":"the reflog message","name":"msg"}],"rawComments":"\n Write a new reflog for the given reference\n\n If there is no reflog file for the given\n reference yet, it will be created.\n\n `oid_old` may be NULL in case it's a new reference.\n\n `msg` is optional and can be NULL.\n\n @param ref the changed reference\n @param oid_old the OID the reference was pointing to\n @param committer the signature of the committer\n @param msg the reflog message\n @return 0 or an error code\n\n","lineto":51,"description":"Write a new reflog for the given reference"},"git_remote_disconnect":{"examples":{"network/fetch.c":["ex/v0.17.0/fetch.html#git_remote_disconnect-10"]},"return":{"type":"void","comment":""},"group":"remote","file":"remote.h","sig":"git_remote *","comments":"Close the connection to the remote and free the underlying\n transport.","argline":"git_remote *remote","line":167,"args":[{"type":"git_remote *","comment":"the remote to disconnect from","name":"remote"}],"rawComments":"\n Disconnect from the remote\n\n Close the connection to the remote and free the underlying\n transport.\n\n @param remote the remote to disconnect from\n\n","lineto":175,"description":"Disconnect from the remote"},"git_branch_delete":{"return":{"type":"int","comment":"0 on success, GIT_ENOTFOUND if the branch doesn't exist or an error code."},"group":"branch","file":"branch.h","sig":"git_repository *::const char *::git_branch_t","comments":"","argline":"git_repository *repo, const char *branch_name, git_branch_t branch_type","line":55,"args":[{"type":"git_repository *","comment":"Repository where lives the branch.","name":"repo"},{"type":"const char *","comment":"Name of the branch to be deleted; this name is validated for consistency.","name":"branch_name"},{"type":"git_branch_t","comment":"Type of the considered branch. This should be valued with either GIT_BRANCH_LOCAL or GIT_BRANCH_REMOTE.","name":"branch_type"}],"rawComments":"\n Delete an existing branch reference.\n\n @param repo Repository where lives the branch.\n\n @param branch_name Name of the branch to be deleted;\n this name is validated for consistency.\n\n @param branch_type Type of the considered branch. This should\n be valued with either GIT_BRANCH_LOCAL or GIT_BRANCH_REMOTE.\n\n @return 0 on success, GIT_ENOTFOUND if the branch\n doesn't exist or an error code.\n\n","lineto":72,"description":"Delete an existing branch reference."},"git_oid_streq":{"return":{"type":"int","comment":"GIT_ENOTOID if str is not a valid hex string, 0 in case of a match, GIT_ERROR otherwise."},"group":"oid","file":"oid.h","sig":"const git_oid *::const char *","comments":"","argline":"const git_oid *a, const char *str","line":152,"args":[{"type":"const git_oid *","comment":"oid structure.","name":"a"},{"type":"const char *","comment":"input hex string of an object id.","name":"str"}],"rawComments":"\n Check if an oid equals an hex formatted object id.\n\n @param a oid structure.\n @param str input hex string of an object id.\n @return GIT_ENOTOID if str is not a valid hex string,\n 0 in case of a match, GIT_ERROR otherwise.\n\n","lineto":160,"description":"Check if an oid equals an hex formatted object id."},"git_tag_tagger":{"return":{"type":"const git_signature *","comment":"reference to the tag's author"},"group":"tag","file":"tag.h","sig":"git_tag *","comments":"","argline":"git_tag *tag","line":116,"args":[{"type":"git_tag *","comment":"a previously loaded tag.","name":"tag"}],"rawComments":"\n Get the tagger (author) of a tag\n\n @param tag a previously loaded tag.\n @return reference to the tag's author\n\n","lineto":122,"description":"Get the tagger (author) of a tag"},"git_commit_lookup":{"examples":{"general.c":["ex/v0.17.0/general.html#git_commit_lookup-52","ex/v0.17.0/general.html#git_commit_lookup-53","ex/v0.17.0/general.html#git_commit_lookup-54"]},"return":{"type":"int","comment":"0 or an error code"},"group":"commit","file":"commit.h","sig":"git_commit **::git_repository *::const git_oid *","comments":"","argline":"git_commit **commit, git_repository *repo, const git_oid *id","line":24,"args":[{"type":"git_commit **","comment":"pointer to the looked up commit","name":"commit"},{"type":"git_repository *","comment":"the repo to use when locating the commit.","name":"repo"},{"type":"const git_oid *","comment":"identity of the commit to locate. If the object is an annotated tag it will be peeled back to the commit.","name":"id"}],"rawComments":"\n Lookup a commit object from a repository.\n\n @param commit pointer to the looked up commit\n @param repo the repo to use when locating the commit.\n @param id identity of the commit to locate. If the object is\n\t\tan annotated tag it will be peeled back to the commit.\n @return 0 or an error code\n\n","lineto":36,"description":"Lookup a commit object from a repository."},"git_note_foreach":{"return":{"type":"int","comment":"0 or an error code."},"group":"note","file":"notes.h","sig":"git_repository *::const char *::int(*)(git_note_data *note_data, void *payload)::void *","comments":"","argline":"git_repository *repo, const char *notes_ref, int (*note_cb)(git_note_data *note_data, void *payload), void *payload","line":116,"args":[{"type":"git_repository *","comment":"Repository where to find the notes.","name":"repo"},{"type":"const char *","comment":"OID reference to read from (optional); defaults to \"refs/notes/commits\".","name":"notes_ref"},{"type":"int(*)(git_note_data *note_data, void *payload)","comment":"Callback to invoke per found annotation.","name":"note_cb"},{"type":"void *","comment":"Extra parameter to callback function.","name":"payload"}],"rawComments":"\n Loop over all the notes within a specified namespace\n and issue a callback for each one.\n\n @param repo Repository where to find the notes.\n\n @param notes_ref OID reference to read from (optional); defaults to \"refs/notes/commits\".\n\n @param note_cb Callback to invoke per found annotation.\n\n @param payload Extra parameter to callback function.\n\n @return 0 or an error code.\n\n","lineto":135,"description":"Loop over all the notes within a specified namespace and issue a callback for each one."},"git_merge_base":{"return":{"type":"int","comment":""},"group":"merge","file":"merge.h","sig":"git_oid *::git_repository *::git_oid *::git_oid *","comments":"","argline":"git_oid *out, git_repository *repo, git_oid *one, git_oid *two","line":23,"args":[{"type":"git_oid *","comment":"the OID of a merge base between 'one' and 'two'","name":"out"},{"type":"git_repository *","comment":"the repository where the commits exist","name":"repo"},{"type":"git_oid *","comment":"one of the commits","name":"one"},{"type":"git_oid *","comment":"the other commit","name":"two"}],"rawComments":"\n Find a merge base between two commits\n\n @param out the OID of a merge base between 'one' and 'two'\n @param repo the repository where the commits exist\n @param one one of the commits\n @param two the other commit\n\n","lineto":31,"description":"Find a merge base between two commits"},"git_config_set_bool":{"return":{"type":"int","comment":"0 or an error code"},"group":"config","file":"config.h","sig":"git_config *::const char *::int","comments":"","argline":"git_config *cfg, const char *name, int value","line":257,"args":[{"type":"git_config *","comment":"where to look for the variable","name":"cfg"},{"type":"const char *","comment":"the variable's name","name":"name"},{"type":"int","comment":"the value to store","name":"value"}],"rawComments":"\n Set the value of a boolean config variable.\n\n @param cfg where to look for the variable\n @param name the variable's name\n @param value the value to store\n @return 0 or an error code\n\n","lineto":265,"description":"Set the value of a boolean config variable."},"git_revwalk_hide_glob":{"return":{"type":"int","comment":"0 or an error code"},"group":"revwalk","file":"revwalk.h","sig":"git_revwalk *::const char *","comments":"The OIDs pinted to by the references that match the given glob\n pattern and their ancestors will be hidden from the output on the\n revision walk.\n\n A leading 'refs/' is implied it not present as well as a trailing\n '/ *' if the glob lacks '?', '*' or '['.","argline":"git_revwalk *walk, const char *glob","line":142,"args":[{"type":"git_revwalk *","comment":"the walker being used for the traversal","name":"walk"},{"type":"const char *","comment":"the glob pattern references should match","name":"glob"}],"rawComments":"\n Hide matching references.\n\n The OIDs pinted to by the references that match the given glob\n pattern and their ancestors will be hidden from the output on the\n revision walk.\n\n A leading 'refs/' is implied it not present as well as a trailing\n '/ *' if the glob lacks '?', '*' or '['.\n\n @param walk the walker being used for the traversal\n @param glob the glob pattern references should match\n @return 0 or an error code\n\n","lineto":156,"description":"Hide matching references."},"git_indexer_stream_finalize":{"examples":{"network/index-pack.c":["ex/v0.17.0/index-pack.html#git_indexer_stream_finalize-8"]},"return":{"type":"int","comment":""},"group":"indexer","file":"indexer.h","sig":"git_indexer_stream *::git_indexer_stats *","comments":"Resolve any pending deltas and write out the index file","argline":"git_indexer_stream *idx, git_indexer_stats *stats","line":46,"args":[{"type":"git_indexer_stream *","comment":"the indexer","name":"idx"},{"type":"git_indexer_stats *","comment":"","name":"stats"}],"rawComments":"\n Finalize the pack and index\n\n Resolve any pending deltas and write out the index file\n\n @param idx the indexer\n\n","lineto":53,"description":"Finalize the pack and index"},"git_odb_object_free":{"examples":{"general.c":["ex/v0.17.0/general.html#git_odb_object_free-55"]},"return":{"type":"void","comment":""},"group":"odb","file":"odb.h","sig":"git_odb_object *","comments":"This method must always be called once a `git_odb_object` is no\n longer needed, otherwise memory will leak.","argline":"git_odb_object *object","line":277,"args":[{"type":"git_odb_object *","comment":"object to close","name":"object"}],"rawComments":"\n Close an ODB object\n\n This method must always be called once a `git_odb_object` is no\n longer needed, otherwise memory will leak.\n\n @param object object to close\n\n","lineto":285,"description":"Close an ODB object"},"git_tree_entry_to_object":{"examples":{"general.c":["ex/v0.17.0/general.html#git_tree_entry_to_object-56"]},"return":{"type":"int","comment":"0 or an error code"},"group":"tree","file":"tree.h","sig":"git_object **::git_repository *::const git_tree_entry *","comments":"@param object pointer to the converted object","argline":"git_object **object_out, git_repository *repo, const git_tree_entry *entry","line":138,"args":[{"type":"git_object **","comment":"","name":"object_out"},{"type":"git_repository *","comment":"repository where to lookup the pointed object","name":"repo"},{"type":"const git_tree_entry *","comment":"a tree entry","name":"entry"}],"rawComments":"\n Convert a tree entry to the git_object it points too.\n\n @param object pointer to the converted object\n @param repo repository where to lookup the pointed object\n @param entry a tree entry\n @return 0 or an error code\n\n","lineto":146,"description":"Convert a tree entry to the git_object it points too."},"git_repository_path":{"return":{"type":"const char *","comment":"the path to the repository"},"group":"repository","file":"repository.h","sig":"git_repository *","comments":"This is the path of the `.git` folder for normal repositories,\n or of the repository itself for bare repositories.","argline":"git_repository *repo","line":162,"args":[{"type":"git_repository *","comment":"A repository object","name":"repo"}],"rawComments":"\n Get the path of this repository\n\n This is the path of the `.git` folder for normal repositories,\n or of the repository itself for bare repositories.\n\n @param repo A repository object\n @return the path to the repository\n\n","lineto":171,"description":"Get the path of this repository"},"git_repository_head_detached":{"return":{"type":"int","comment":"1 if HEAD is detached, 0 if i'ts not; error code if there was an error."},"group":"repository","file":"repository.h","sig":"git_repository *","comments":"A repository's HEAD is detached when it points directly to a commit\n instead of a branch.","argline":"git_repository *repo","line":126,"args":[{"type":"git_repository *","comment":"Repo to test","name":"repo"}],"rawComments":"\n Check if a repository's HEAD is detached\n\n A repository's HEAD is detached when it points directly to a commit\n instead of a branch.\n\n @param repo Repo to test\n @return 1 if HEAD is detached, 0 if i'ts not; error code if there\n was an error.\n\n","lineto":136,"description":"Check if a repository's HEAD is detached"},"git_threads_init":{"return":{"type":"void","comment":""},"group":"threads","file":"threads.h","sig":"","comments":"If libgit2 has been built with GIT_THREADS\n on, this function must be called once before\n any other library functions.\n\n If libgit2 has been built without GIT_THREADS\n support, this function is a no-op.","argline":"void","line":21,"args":[{"type":"","comment":"","name":"void"}],"rawComments":"\n Init the threading system.\n\n If libgit2 has been built with GIT_THREADS\n on, this function must be called once before\n any other library functions.\n\n If libgit2 has been built without GIT_THREADS\n support, this function is a no-op.\n\n","lineto":31,"description":"Init the threading system."},"git_remote_new":{"examples":{"network/ls-remote.c":["ex/v0.17.0/ls-remote.html#git_remote_new-7"],"network/fetch.c":["ex/v0.17.0/fetch.html#git_remote_new-11"]},"return":{"type":"int","comment":"0 or an error code"},"group":"remote","file":"remote.h","sig":"git_remote **::git_repository *::const char *::const char *::const char *","comments":"Create a remote with the default refspecs in memory. You can use\n this when you have a URL instead of a remote's name.","argline":"git_remote **out, git_repository *repo, const char *name, const char *url, const char *fetch","line":33,"args":[{"type":"git_remote **","comment":"pointer to the new remote object","name":"out"},{"type":"git_repository *","comment":"the associtated repository","name":"repo"},{"type":"const char *","comment":"the remote's name","name":"name"},{"type":"const char *","comment":"the remote repository's URL","name":"url"},{"type":"const char *","comment":"the fetch refspec to use for this remote","name":"fetch"}],"rawComments":"\n Create a remote in memory\n\n Create a remote with the default refspecs in memory. You can use\n this when you have a URL instead of a remote's name.\n\n @param out pointer to the new remote object\n @param repo the associtated repository\n @param name the remote's name\n @param url the remote repository's URL\n @param fetch the fetch refspec to use for this remote\n @return 0 or an error code\n\n","lineto":46,"description":"Create a remote in memory"},"git_blob_create_frombuffer":{"return":{"type":"int","comment":"0 or an error code"},"group":"blob","file":"blob.h","sig":"git_oid *::git_repository *::const void *::size_t","comments":"","argline":"git_oid *oid, git_repository *repo, const void *buffer, size_t len","line":119,"args":[{"type":"git_oid *","comment":"return the oid of the written blob","name":"oid"},{"type":"git_repository *","comment":"repository where to blob will be written","name":"repo"},{"type":"const void *","comment":"data to be written into the blob","name":"buffer"},{"type":"size_t","comment":"length of the data","name":"len"}],"rawComments":"\n Write an in-memory buffer to the ODB as a blob\n\n @param oid return the oid of the written blob\n @param repo repository where to blob will be written\n @param buffer data to be written into the blob\n @param len length of the data\n @return 0 or an error code\n\n","lineto":128,"description":"Write an in-memory buffer to the ODB as a blob"},"git_indexer_stream_hash":{"examples":{"network/index-pack.c":["ex/v0.17.0/index-pack.html#git_indexer_stream_hash-9"]},"return":{"type":"const git_oid *","comment":""},"group":"indexer","file":"indexer.h","sig":"git_indexer_stream *","comments":"A packfile's name is derived from the sorted hashing of all object\n names. This is only correct after the index has been finalized.","argline":"git_indexer_stream *idx","line":55,"args":[{"type":"git_indexer_stream *","comment":"the indexer instance","name":"idx"}],"rawComments":"\n Get the packfile's hash\n\n A packfile's name is derived from the sorted hashing of all object\n names. This is only correct after the index has been finalized.\n\n @param idx the indexer instance\n\n","lineto":63,"description":"Get the packfile's hash"},"git_object_free":{"examples":{"general.c":["ex/v0.17.0/general.html#git_object_free-57"],"diff.c":["ex/v0.17.0/diff.html#git_object_free-19"]},"return":{"type":"void","comment":""},"group":"object","file":"object.h","sig":"git_object *","comments":"This method instructs the library to close an existing\n object; note that git_objects are owned and cached by the repository\n so the object may or may not be freed after this library call,\n depending on how agressive is the caching mechanism used\n by the repository.\n\n IMPORTANT:\n It *is* necessary to call this method when you stop using\n an object. Failure to do so will cause a memory leak.","argline":"git_object *object","line":111,"args":[{"type":"git_object *","comment":"the object to close","name":"object"}],"rawComments":"\n Close an open object\n\n This method instructs the library to close an existing\n object; note that git_objects are owned and cached by the repository\n so the object may or may not be freed after this library call,\n depending on how agressive is the caching mechanism used\n by the repository.\n\n IMPORTANT:\n It *is* necessary to call this method when you stop using\n an object. Failure to do so will cause a memory leak.\n\n @param object the object to close\n\n","lineto":126,"description":"Close an open object"},"git_index_find":{"return":{"type":"int","comment":"an index >= 0 if found, -1 otherwise"},"group":"index","file":"index.h","sig":"git_index *::const char *","comments":"","argline":"git_index *index, const char *path","line":147,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"},{"type":"const char *","comment":"path to search","name":"path"}],"rawComments":"\n Find the first index of any entries which point to given\n path in the Git index.\n\n @param index an existing index object\n @param path path to search\n @return an index >= 0 if found, -1 otherwise\n\n","lineto":155,"description":"Find the first index of any entries which point to given path in the Git index."},"git_revwalk_push":{"examples":{"general.c":["ex/v0.17.0/general.html#git_revwalk_push-58"]},"return":{"type":"int","comment":"0 or an error code"},"group":"revwalk","file":"revwalk.h","sig":"git_revwalk *::const git_oid *","comments":"The given OID must belong to a commit on the walked\n repository.\n\n The given commit will be used as one of the roots\n when starting the revision walk. At least one commit\n must be pushed the repository before a walk can\n be started.","argline":"git_revwalk *walk, const git_oid *oid","line":87,"args":[{"type":"git_revwalk *","comment":"the walker being used for the traversal.","name":"walk"},{"type":"const git_oid *","comment":"the oid of the commit to start from.","name":"oid"}],"rawComments":"\n Mark a commit to start traversal from.\n\n The given OID must belong to a commit on the walked\n repository.\n\n The given commit will be used as one of the roots\n when starting the revision walk. At least one commit\n must be pushed the repository before a walk can\n be started.\n\n @param walk the walker being used for the traversal.\n @param oid the oid of the commit to start from.\n @return 0 or an error code\n\n","lineto":102,"description":"Mark a commit to start traversal from."},"git_reference_free":{"examples":{"diff.c":["ex/v0.17.0/diff.html#git_reference_free-20","ex/v0.17.0/diff.html#git_reference_free-21"]},"return":{"type":"void","comment":""},"group":"reference","file":"refs.h","sig":"git_reference *","comments":"","argline":"git_reference *ref","line":311,"args":[{"type":"git_reference *","comment":"git_reference","name":"ref"}],"rawComments":"\n Free the given reference\n\n @param ref git_reference\n\n","lineto":316,"description":"Free the given reference"},"git_config_free":{"return":{"type":"void","comment":""},"group":"config","file":"config.h","sig":"git_config *","comments":"","argline":"git_config *cfg","line":170,"args":[{"type":"git_config *","comment":"the configuration to free","name":"cfg"}],"rawComments":"\n Free the configuration and its associated memory and files\n\n @param cfg the configuration to free\n\n","lineto":175,"description":"Free the configuration and its associated memory and files"},"git_treebuilder_remove":{"return":{"type":"int","comment":""},"group":"treebuilder","file":"tree.h","sig":"git_treebuilder *::const char *","comments":"","argline":"git_treebuilder *bld, const char *filename","line":236,"args":[{"type":"git_treebuilder *","comment":"Tree builder","name":"bld"},{"type":"const char *","comment":"Filename of the entry to remove","name":"filename"}],"rawComments":"\n Remove an entry from the builder by its filename\n\n @param bld Tree builder\n @param filename Filename of the entry to remove\n\n","lineto":242,"description":"Remove an entry from the builder by its filename"},"git_odb_new":{"return":{"type":"int","comment":"0 or an error code"},"group":"odb","file":"odb.h","sig":"git_odb **","comments":"Before the ODB can be used for read/writing, a custom database\n backend must be manually added using `git_odb_add_backend()`","argline":"git_odb **out","line":24,"args":[{"type":"git_odb **","comment":"location to store the database pointer, if opened. Set to NULL if the open failed.","name":"out"}],"rawComments":"\n Create a new object database with no backends.\n\n Before the ODB can be used for read/writing, a custom database\n backend must be manually added using `git_odb_add_backend()`\n\n @param out location to store the database pointer, if opened.\n\t\t\tSet to NULL if the open failed.\n @return 0 or an error code\n\n","lineto":34,"description":"Create a new object database with no backends."},"git_repository_is_empty":{"return":{"type":"int","comment":"1 if the repository is empty, 0 if it isn't, error code if the repository is corrupted"},"group":"repository","file":"repository.h","sig":"git_repository *","comments":"An empty repository has just been initialized and contains\n no commits.","argline":"git_repository *repo","line":150,"args":[{"type":"git_repository *","comment":"Repo to test","name":"repo"}],"rawComments":"\n Check if a repository is empty\n\n An empty repository has just been initialized and contains\n no commits.\n\n @param repo Repo to test\n @return 1 if the repository is empty, 0 if it isn't, error code\n if the repository is corrupted\n\n","lineto":160,"description":"Check if a repository is empty"},"git_tree_walk":{"return":{"type":"int","comment":"0 or an error code"},"group":"tree","file":"tree.h","sig":"git_tree *::git_treewalk_cb::int::void *","comments":"The entries will be traversed in the specified order,\n children subtrees will be automatically loaded as required,\n and the `callback` will be called once per entry with\n the current (relative) root for the entry and the entry\n data itself.\n\n If the callback returns a negative value, the passed entry\n will be skiped on the traversal.","argline":"git_tree *tree, git_treewalk_cb callback, int mode, void *payload","line":294,"args":[{"type":"git_tree *","comment":"The tree to walk","name":"tree"},{"type":"git_treewalk_cb","comment":"Function to call on each tree entry","name":"callback"},{"type":"int","comment":"Traversal mode (pre or post-order)","name":"mode"},{"type":"void *","comment":"Opaque pointer to be passed on each callback","name":"payload"}],"rawComments":"\n Traverse the entries in a tree and its subtrees in\n post or pre order\n\n The entries will be traversed in the specified order,\n children subtrees will be automatically loaded as required,\n and the `callback` will be called once per entry with\n the current (relative) root for the entry and the entry\n data itself.\n\n If the callback returns a negative value, the passed entry\n will be skiped on the traversal.\n\n @param tree The tree to walk\n @param callback Function to call on each tree entry\n @param mode Traversal mode (pre or post-order)\n @param payload Opaque pointer to be passed on each callback\n @return 0 or an error code\n\n","lineto":313,"description":"Traverse the entries in a tree and its subtrees in post or pre order"},"git_commit_create_v":{"examples":{"general.c":["ex/v0.17.0/general.html#git_commit_create_v-59"]},"return":{"type":"int","comment":""},"group":"commit","file":"commit.h","sig":"git_oid *::git_repository *::const char *::const git_signature *::const git_signature *::const char *::const char *::const git_tree *::int::","comments":"The message will be cleaned up from excess whitespace\n it will be made sure that the last line ends with a '\\n'.\n\n The parents for the commit are specified as a variable\n list of pointers to `const git_commit *`. Note that this\n is a convenience method which may not be safe to export\n for certain languages or compilers\n\n All other parameters remain the same\n\n @see git_commit_create","argline":"git_oid *oid, git_repository *repo, const char *update_ref, const git_signature *author, const git_signature *committer, const char *message_encoding, const char *message, const git_tree *tree, int parent_count, ...","line":240,"args":[{"type":"git_oid *","comment":"","name":"oid"},{"type":"git_repository *","comment":"","name":"repo"},{"type":"const char *","comment":"","name":"update_ref"},{"type":"const git_signature *","comment":"","name":"author"},{"type":"const git_signature *","comment":"","name":"committer"},{"type":"const char *","comment":"","name":"message_encoding"},{"type":"const char *","comment":"","name":"message"},{"type":"const git_tree *","comment":"","name":"tree"},{"type":"int","comment":"","name":"parent_count"},{"type":"","comment":"","name":"..."}],"rawComments":"\n Create a new commit in the repository using a variable\n argument list.\n\n The message will be cleaned up from excess whitespace\n it will be made sure that the last line ends with a '\\n'.\n\n The parents for the commit are specified as a variable\n list of pointers to `const git_commit *`. Note that this\n is a convenience method which may not be safe to export\n for certain languages or compilers\n\n All other parameters remain the same\n\n @see git_commit_create\n\n","lineto":266,"description":"Create a new commit in the repository using a variable argument list."},"git_remote_url":{"return":{"type":"const char *","comment":"a pointer to the url"},"group":"remote","file":"remote.h","sig":"git_remote *","comments":"","argline":"git_remote *remote","line":74,"args":[{"type":"git_remote *","comment":"the remote","name":"remote"}],"rawComments":"\n Get the remote's url\n\n @param remote the remote\n @return a pointer to the url\n\n","lineto":80,"description":"Get the remote's url"},"git_object__size":{"return":{"type":"size_t","comment":"size in bytes of the object"},"group":"object","file":"object.h","sig":"git_otype","comments":"For all the core types, this would the equivalent\n of calling `sizeof(git_commit)` if the core types\n were not opaque on the external API.","argline":"git_otype type","line":156,"args":[{"type":"git_otype","comment":"object type to get its size","name":"type"}],"rawComments":"\n Get the size in bytes for the structure which\n acts as an in-memory representation of any given\n object type.\n\n For all the core types, this would the equivalent\n of calling `sizeof(git_commit)` if the core types\n were not opaque on the external API.\n\n @param type object type to get its size\n @return size in bytes of the object\n\n","lineto":168,"description":"Get the size in bytes for the structure which acts as an in-memory representation of any given object type."},"git_note_message":{"return":{"type":"const char *","comment":"the note message"},"group":"note","file":"notes.h","sig":"git_note *","comments":"@param note","argline":"git_note *note","line":36,"args":[{"type":"git_note *","comment":"","name":"note"}],"rawComments":"\n Get the note message\n\n @param note\n @return the note message\n\n","lineto":42,"description":"Get the note message"},"git_tag_create":{"return":{"type":"int","comment":"0 or an error code A tag object is written to the ODB, and a proper reference is written in the /refs/tags folder, pointing to it"},"group":"tag","file":"tag.h","sig":"git_oid *::git_repository *::const char *::const git_object *::const git_signature *::const char *::int","comments":"A new reference will also be created pointing to\n this tag object. If `force` is true and a reference\n already exists with the given name, it'll be replaced.\n\n The message will be cleaned up from excess whitespace\n it will be made sure that the last line ends with a '\\n'.","argline":"git_oid *oid, git_repository *repo, const char *tag_name, const git_object *target, const git_signature *tagger, const char *message, int force","line":133,"args":[{"type":"git_oid *","comment":"Pointer where to store the OID of the newly created tag. If the tag already exists, this parameter will be the oid of the existing tag, and the function will return a GIT_EEXISTS error code.","name":"oid"},{"type":"git_repository *","comment":"Repository where to store the tag","name":"repo"},{"type":"const char *","comment":"Name for the tag; this name is validated for consistency. It should also not conflict with an already existing tag name","name":"tag_name"},{"type":"const git_object *","comment":"Object to which this tag points. This object must belong to the given `repo`.","name":"target"},{"type":"const git_signature *","comment":"Signature of the tagger for this tag, and of the tagging time","name":"tagger"},{"type":"const char *","comment":"Full message for this tag","name":"message"},{"type":"int","comment":"Overwrite existing references","name":"force"}],"rawComments":"\n Create a new tag in the repository from an object\n\n A new reference will also be created pointing to\n this tag object. If `force` is true and a reference\n already exists with the given name, it'll be replaced.\n\n The message will be cleaned up from excess whitespace\n it will be made sure that the last line ends with a '\\n'.\n\n @param oid Pointer where to store the OID of the\n newly created tag. If the tag already exists, this parameter\n will be the oid of the existing tag, and the function will\n return a GIT_EEXISTS error code.\n\n @param repo Repository where to store the tag\n\n @param tag_name Name for the tag; this name is validated\n for consistency. It should also not conflict with an\n already existing tag name\n\n @param target Object to which this tag points. This object\n must belong to the given `repo`.\n\n @param tagger Signature of the tagger for this tag, and\n of the tagging time\n\n @param message Full message for this tag\n\n @param force Overwrite existing references\n\n @return 0 or an error code\n\tA tag object is written to the ODB, and a proper reference\n\tis written in the /refs/tags folder, pointing to it\n\n","lineto":175,"description":"Create a new tag in the repository from an object"},"git_commit_free":{"examples":{"general.c":["ex/v0.17.0/general.html#git_commit_free-60","ex/v0.17.0/general.html#git_commit_free-61","ex/v0.17.0/general.html#git_commit_free-62","ex/v0.17.0/general.html#git_commit_free-63"]},"return":{"type":"void","comment":""},"group":"commit","file":"commit.h","sig":"git_commit *","comments":"This is a wrapper around git_object_free()\n\n IMPORTANT:\n It *is* necessary to call this method when you stop\n using a commit. Failure to do so will cause a memory leak.","argline":"git_commit *commit","line":56,"args":[{"type":"git_commit *","comment":"the commit to close","name":"commit"}],"rawComments":"\n Close an open commit\n\n This is a wrapper around git_object_free()\n\n IMPORTANT:\n It *is* necessary to call this method when you stop\n using a commit. Failure to do so will cause a memory leak.\n\n @param commit the commit to close\n\n","lineto":71,"description":"Close an open commit"},"git_indexer_stream_add":{"examples":{"network/index-pack.c":["ex/v0.17.0/index-pack.html#git_indexer_stream_add-10"]},"return":{"type":"int","comment":""},"group":"indexer","file":"indexer.h","sig":"git_indexer_stream *::const void *::size_t::git_indexer_stats *","comments":"","argline":"git_indexer_stream *idx, const void *data, size_t size, git_indexer_stats *stats","line":36,"args":[{"type":"git_indexer_stream *","comment":"the indexer","name":"idx"},{"type":"const void *","comment":"the data to add","name":"data"},{"type":"size_t","comment":"the size of the data","name":"size"},{"type":"git_indexer_stats *","comment":"stat storage","name":"stats"}],"rawComments":"\n Add data to the indexer\n\n @param idx the indexer\n @param data the data to add\n @param size the size of the data\n @param stats stat storage\n\n","lineto":44,"description":"Add data to the indexer"},"git_oid_fromstr":{"examples":{"general.c":["ex/v0.17.0/general.html#git_oid_fromstr-64","ex/v0.17.0/general.html#git_oid_fromstr-65","ex/v0.17.0/general.html#git_oid_fromstr-66","ex/v0.17.0/general.html#git_oid_fromstr-67","ex/v0.17.0/general.html#git_oid_fromstr-68","ex/v0.17.0/general.html#git_oid_fromstr-69","ex/v0.17.0/general.html#git_oid_fromstr-70","ex/v0.17.0/general.html#git_oid_fromstr-71"]},"return":{"type":"int","comment":"0 or an error code"},"group":"oid","file":"oid.h","sig":"git_oid *::const char *","comments":"","argline":"git_oid *out, const char *str","line":39,"args":[{"type":"git_oid *","comment":"oid structure the result is written into.","name":"out"},{"type":"const char *","comment":"input hex string; must be pointing at the start of the hex sequence and have at least the number of bytes needed for an oid encoded in hex (40 bytes).","name":"str"}],"rawComments":"\n Parse a hex formatted object id into a git_oid.\n\n @param out oid structure the result is written into.\n @param str input hex string; must be pointing at the start of\n\t\tthe hex sequence and have at least the number of bytes\n\t\tneeded for an oid encoded in hex (40 bytes).\n @return 0 or an error code\n\n","lineto":48,"description":"Parse a hex formatted object id into a git_oid."},"git_tree_lookup_prefix":{"return":{"type":"int","comment":"0 or an error code"},"group":"tree","file":"tree.h","sig":"git_tree **::git_repository *::const git_oid *::unsigned int","comments":"@see git_object_lookup_prefix","argline":"git_tree **tree, git_repository *repo, const git_oid *id, unsigned int len","line":37,"args":[{"type":"git_tree **","comment":"pointer to the looked up tree","name":"tree"},{"type":"git_repository *","comment":"the repo to use when locating the tree.","name":"repo"},{"type":"const git_oid *","comment":"identity of the tree to locate.","name":"id"},{"type":"unsigned int","comment":"the length of the short identifier","name":"len"}],"rawComments":"\n Lookup a tree object from the repository,\n given a prefix of its identifier (short id).\n\n @see git_object_lookup_prefix\n\n @param tree pointer to the looked up tree\n @param repo the repo to use when locating the tree.\n @param id identity of the tree to locate.\n @param len the length of the short identifier\n @return 0 or an error code\n\n","lineto":52,"description":"Lookup a tree object from the repository, given a prefix of its identifier (short id)."},"git_revwalk_push_glob":{"return":{"type":"int","comment":"0 or an error code"},"group":"revwalk","file":"revwalk.h","sig":"git_revwalk *::const char *","comments":"The OIDs pinted to by the references that match the given glob\n pattern will be pushed to the revision walker.\n\n A leading 'refs/' is implied it not present as well as a trailing\n '/ *' if the glob lacks '?', '*' or '['.","argline":"git_revwalk *walk, const char *glob","line":104,"args":[{"type":"git_revwalk *","comment":"the walker being used for the traversal","name":"walk"},{"type":"const char *","comment":"the glob pattern references should match","name":"glob"}],"rawComments":"\n Push matching references\n\n The OIDs pinted to by the references that match the given glob\n pattern will be pushed to the revision walker.\n\n A leading 'refs/' is implied it not present as well as a trailing\n '/ *' if the glob lacks '?', '*' or '['.\n\n @param walk the walker being used for the traversal\n @param glob the glob pattern references should match\n @return 0 or an error code\n\n","lineto":117,"description":"Push matching references"},"git_repository_open_ext":{"return":{"type":"int","comment":""},"group":"repository","file":"repository.h","sig":"git_repository **::const char *::uint32_t::const char *","comments":"","argline":"git_repository **repo, const char *start_path, uint32_t flags, const char *ceiling_dirs","line":78,"args":[{"type":"git_repository **","comment":"","name":"repo"},{"type":"const char *","comment":"","name":"start_path"},{"type":"uint32_t","comment":"","name":"flags"},{"type":"const char *","comment":"","name":"ceiling_dirs"}],"rawComments":"\n Find and open a repository with extended controls.\n\n","lineto":85,"description":"Find and open a repository with extended controls."},"git_index_entrycount":{"examples":{"showindex.c":["ex/v0.17.0/showindex.html#git_index_entrycount-8"],"general.c":["ex/v0.17.0/general.html#git_index_entrycount-72"]},"return":{"type":"unsigned int","comment":"integer of count of current entries"},"group":"index","file":"index.h","sig":"git_index *","comments":"","argline":"git_index *index","line":255,"args":[{"type":"git_index *","comment":"an existing index object","name":"index"}],"rawComments":"\n Get the count of entries currently in the index\n\n @param index an existing index object\n @return integer of count of current entries\n\n","lineto":261,"description":"Get the count of entries currently in the index"},"git_indexer_new":{"examples":{"network/index-pack.c":["ex/v0.17.0/index-pack.html#git_indexer_new-11"]},"return":{"type":"int","comment":""},"group":"indexer","file":"indexer.h","sig":"git_indexer **::const char *","comments":"","argline":"git_indexer **out, const char *packname","line":72,"args":[{"type":"git_indexer **","comment":"where to store the indexer instance","name":"out"},{"type":"const char *","comment":"the absolute filename of the packfile to index","name":"packname"}],"rawComments":"\n Create a new indexer instance\n\n @param out where to store the indexer instance\n @param packname the absolute filename of the packfile to index\n\n","lineto":78,"description":"Create a new indexer instance"},"git_treebuilder_create":{"return":{"type":"int","comment":"0 on sucess; error code otherwise"},"group":"treebuilder","file":"tree.h","sig":"git_treebuilder **::const git_tree *","comments":"The tree builder can be used to create or modify\n trees in memory and write them as tree objects to the\n database.\n\n If the `source` parameter is not NULL, the tree builder\n will be initialized with the entries of the given tree.\n\n If the `source` parameter is NULL, the tree builder will\n have no entries and will have to be filled manually.","argline":"git_treebuilder **builder_p, const git_tree *source","line":166,"args":[{"type":"git_treebuilder **","comment":"Pointer where to store the tree builder","name":"builder_p"},{"type":"const git_tree *","comment":"Source tree to initialize the builder (optional)","name":"source"}],"rawComments":"\n Create a new tree builder.\n\n The tree builder can be used to create or modify\n trees in memory and write them as tree objects to the\n database.\n\n If the `source` parameter is not NULL, the tree builder\n will be initialized with the entries of the given tree.\n\n If the `source` parameter is NULL, the tree builder will\n have no entries and will have to be filled manually.\n\n @param builder_p Pointer where to store the tree builder\n @param source Source tree to initialize the builder (optional)\n @return 0 on sucess; error code otherwise\n\n","lineto":183,"description":"Create a new tree builder."},"git_tag_target":{"examples":{"general.c":["ex/v0.17.0/general.html#git_tag_target-73"]},"return":{"type":"int","comment":"0 or an error code"},"group":"tag","file":"tag.h","sig":"git_object **::git_tag *","comments":"This method performs a repository lookup for the\n given object and returns it","argline":"git_object **target, git_tag *tag","line":80,"args":[{"type":"git_object **","comment":"pointer where to store the target","name":"target"},{"type":"git_tag *","comment":"a previously loaded tag.","name":"tag"}],"rawComments":"\n Get the tagged object of a tag\n\n This method performs a repository lookup for the\n given object and returns it\n\n @param target pointer where to store the target\n @param tag a previously loaded tag.\n @return 0 or an error code\n\n","lineto":90,"description":"Get the tagged object of a tag"},"git_commit_parent":{"examples":{"general.c":["ex/v0.17.0/general.html#git_commit_parent-74"]},"return":{"type":"int","comment":"0 or an error code"},"group":"commit","file":"commit.h","sig":"git_commit **::git_commit *::unsigned int","comments":"","argline":"git_commit **parent, git_commit *commit, unsigned int n","line":160,"args":[{"type":"git_commit **","comment":"Pointer where to store the parent commit","name":"parent"},{"type":"git_commit *","comment":"a previously loaded commit.","name":"commit"},{"type":"unsigned int","comment":"the position of the parent (from 0 to `parentcount`)","name":"n"}],"rawComments":"\n Get the specified parent of the commit.\n\n @param parent Pointer where to store the parent commit\n @param commit a previously loaded commit.\n @param n the position of the parent (from 0 to `parentcount`)\n @return 0 or an error code\n\n","lineto":168,"description":"Get the specified parent of the commit."},"git_remote_connected":{"return":{"type":"int","comment":"1 if it's connected, 0 otherwise."},"group":"remote","file":"remote.h","sig":"git_remote *","comments":"Check whether the remote's underlying transport is connected to the\n remote host.","argline":"git_remote *remote","line":157,"args":[{"type":"git_remote *","comment":"","name":"remote"}],"rawComments":"\n Check whether the remote is connected\n\n Check whether the remote's underlying transport is connected to the\n remote host.\n\n @return 1 if it's connected, 0 otherwise.\n\n","lineto":165,"description":"Check whether the remote is connected"},"git_blob_lookup":{"examples":{"general.c":["ex/v0.17.0/general.html#git_blob_lookup-75"]},"return":{"type":"int","comment":"0 or an error code"},"group":"blob","file":"blob.h","sig":"git_blob **::git_repository *::const git_oid *","comments":"","argline":"git_blob **blob, git_repository *repo, const git_oid *id","line":24,"args":[{"type":"git_blob **","comment":"pointer to the looked up blob","name":"blob"},{"type":"git_repository *","comment":"the repo to use when locating the blob.","name":"repo"},{"type":"const git_oid *","comment":"identity of the blob to locate.","name":"id"}],"rawComments":"\n Lookup a blob object from a repository.\n\n @param blob pointer to the looked up blob\n @param repo the repo to use when locating the blob.\n @param id identity of the blob to locate.\n @return 0 or an error code\n\n","lineto":35,"description":"Lookup a blob object from a repository."},"git_remote_fetchspec":{"return":{"type":"const git_refspec *","comment":"a pointer to the fetch refspec or NULL if it doesn't exist"},"group":"remote","file":"remote.h","sig":"git_remote *","comments":"","argline":"git_remote *remote","line":91,"args":[{"type":"git_remote *","comment":"the remote","name":"remote"}],"rawComments":"\n Get the fetch refspec\n\n @param remote the remote\n @return a pointer to the fetch refspec or NULL if it doesn't exist\n\n","lineto":97,"description":"Get the fetch refspec"},"git_reflog_delete":{"return":{"type":"int","comment":"0 or an error code"},"group":"reflog","file":"reflog.h","sig":"git_reference *","comments":"","argline":"git_reference *ref","line":62,"args":[{"type":"git_reference *","comment":"the reference","name":"ref"}],"rawComments":"\n Delete the reflog for the given reference\n\n @param ref the reference\n @return 0 or an error code\n\n","lineto":68,"description":"Delete the reflog for the given reference"},"git_commit_committer":{"examples":{"general.c":["ex/v0.17.0/general.html#git_commit_committer-76"]},"return":{"type":"const git_signature *","comment":"the committer of a commit"},"group":"commit","file":"commit.h","sig":"git_commit *","comments":"","argline":"git_commit *commit","line":117,"args":[{"type":"git_commit *","comment":"a previously loaded commit.","name":"commit"}],"rawComments":"\n Get the committer of a commit.\n\n @param commit a previously loaded commit.\n @return the committer of a commit\n\n","lineto":123,"description":"Get the committer of a commit."},"git_remote_ls":{"examples":{"network/ls-remote.c":["ex/v0.17.0/ls-remote.html#git_remote_ls-8","ex/v0.17.0/ls-remote.html#git_remote_ls-9","ex/v0.17.0/ls-remote.html#git_remote_ls-10"]},"return":{"type":"int","comment":"0 or an error code"},"group":"remote","file":"remote.h","sig":"git_remote *::git_headlist_cb::void *","comments":"The remote (or more exactly its transport) must be connected. The\n memory belongs to the remote.\n\n @param refs where to store the refs","argline":"git_remote *remote, git_headlist_cb list_cb, void *payload","line":130,"args":[{"type":"git_remote *","comment":"the remote","name":"remote"},{"type":"git_headlist_cb","comment":"","name":"list_cb"},{"type":"void *","comment":"","name":"payload"}],"rawComments":"\n Get a list of refs at the remote\n\n The remote (or more exactly its transport) must be connected. The\n memory belongs to the remote.\n\n @param refs where to store the refs\n @param remote the remote\n @return 0 or an error code\n\n","lineto":140,"description":"Get a list of refs at the remote"},"git_object_id":{"return":{"type":"const git_oid *","comment":"the SHA1 id"},"group":"object","file":"object.h","sig":"const git_object *","comments":"","argline":"const git_object *obj","line":81,"args":[{"type":"const git_object *","comment":"the repository object","name":"obj"}],"rawComments":"\n Get the id (SHA1) of a repository object\n\n @param obj the repository object\n @return the SHA1 id\n\n","lineto":87,"description":"Get the id (SHA1) of a repository object"},"git_indexer_hash":{"examples":{"network/index-pack.c":["ex/v0.17.0/index-pack.html#git_indexer_hash-12"]},"return":{"type":"const git_oid *","comment":""},"group":"indexer","file":"indexer.h","sig":"git_indexer *","comments":"A packfile's name is derived from the sorted hashing of all object\n names. This is only correct after the index has been written to disk.","argline":"git_indexer *idx","line":102,"args":[{"type":"git_indexer *","comment":"the indexer instance","name":"idx"}],"rawComments":"\n Get the packfile's hash\n\n A packfile's name is derived from the sorted hashing of all object\n names. This is only correct after the index has been written to disk.\n\n @param idx the indexer instance\n\n","lineto":110,"description":"Get the packfile's hash"}},"files":[{"meta":{"defgroup":"git_attr Git attribute management routines","ingroup":"Git","file":"git2/attr.h","brief":"Git attribute management routines"},"lines":224,"file":"attr.h","functions":["GIT_EXTERN","git_attr_get","git_attr_get_many","git_attr_foreach","git_attr_cache_flush","git_attr_add_macro"]},{"meta":{"defgroup":"git_blob Git blob load and write routines","ingroup":"Git","file":"git2/blob.h","brief":"Git blob load and write routines"},"lines":132,"file":"blob.h","functions":["git_blob_lookup","git_blob_lookup_prefix","git_blob_free","git_blob_rawcontent","git_blob_rawsize","git_blob_create_fromfile","git_blob_create_fromdisk","git_blob_create_frombuffer"]},{"meta":{"defgroup":"git_branch Git branch management","ingroup":"Git","file":"git2/branch.h","brief":"Git branch parsing routines"},"lines":122,"file":"branch.h","functions":["git_branch_create","git_branch_delete","git_branch_list","git_branch_move"]},{"meta":{"defgroup":"git_commit Git commit parsing, formatting routines","ingroup":"Git","file":"git2/commit.h","brief":"Git commit parsing, formatting routines"},"lines":270,"file":"commit.h","functions":["git_commit_lookup","git_commit_lookup_prefix","git_commit_free","git_commit_id","git_commit_message_encoding","git_commit_message","git_commit_time","git_commit_time_offset","git_commit_committer","git_commit_author","git_commit_tree","git_commit_tree_oid","git_commit_parentcount","git_commit_parent","git_commit_parent_oid","git_commit_create","git_commit_create_v"]},{"meta":{"defgroup":"git_common Git common platform definitions","ingroup":"Git","file":"git2/common.h","brief":"Git common platform definitions"},"lines":104,"file":"common.h","functions":["__attribute__","GIT_EXTERN","git_strarray_copy"]},{"meta":{"defgroup":"git_config Git config management routines","ingroup":"Git","file":"git2/config.h","brief":"Git config management routines"},"lines":356,"file":"config.h","functions":["git_config_find_global","git_config_find_system","git_config_open_global","git_config_file__ondisk","git_config_new","git_config_add_file","git_config_add_file_ondisk","git_config_open_ondisk","git_config_free","git_config_get_bool","git_config_get_string","git_config_get_multivar","git_config_set_bool","git_config_set_string","git_config_set_multivar","git_config_delete","git_config_foreach","git_config_get_mapped"]},{"meta":{"defgroup":null,"ingroup":"Git","file":"git2/diff.h","brief":"Git tree and file differencing routines."},"lines":362,"file":"diff.h","functions":["git_diff_list_free","git_diff_merge","git_diff_foreach","git_diff_print_compact","git_diff_print_patch","git_diff_blobs"]},{"meta":{"defgroup":null,"ingroup":"Git","file":"git2/errors.h","brief":"Git error handling routines and variables"},"lines":108,"file":"errors.h","functions":["giterr_last","giterr_clear"]},{"meta":{"defgroup":"git_index Git index parsing and manipulation routines","ingroup":"Git","file":"git2/index.h","brief":"Git index parsing and manipulation routines"},"lines":321,"file":"index.h","functions":["git_index_open","git_index_clear","git_index_free","git_index_read","git_index_write","git_index_find","git_index_uniq","git_index_add","git_index_append","git_index_remove","git_index_get","git_index_entrycount","git_index_entrycount_unmerged","git_index_get_unmerged_bypath","git_index_get_unmerged_byindex","git_index_entry_stage","git_index_read_tree"]},{"meta":{"defgroup":null,"ingroup":null,"file":null,"brief":null},"lines":121,"file":"indexer.h","functions":["git_indexer_stream_new","git_indexer_stream_add","git_indexer_stream_finalize","git_indexer_stream_hash","git_indexer_stream_free","git_indexer_new","git_indexer_run","git_indexer_write","git_indexer_hash","git_indexer_free"]},{"meta":{"defgroup":null,"ingroup":null,"file":null,"brief":null},"lines":305,"file":"inttypes.h","functions":["imaxdiv"]},{"meta":{"defgroup":"git_revwalk Git merge-base routines","ingroup":"Git","file":"git2/merge.h","brief":"Git merge-base routines"},"lines":35,"file":"merge.h","functions":["git_merge_base"]},{"meta":{"defgroup":null,"ingroup":"Git","file":"git2/net.h","brief":"Git networking declarations"},"lines":51,"file":"net.h","functions":[]},{"meta":{"defgroup":"git_note Git notes management routines","ingroup":"Git","file":"git2/notes.h","brief":"Git notes management routines"},"lines":139,"file":"notes.h","functions":["git_note_read","git_note_message","git_note_oid","git_note_create","git_note_remove","git_note_free","git_note_default_ref","git_note_foreach"]},{"meta":{"defgroup":"git_object Git revision object management routines","ingroup":"Git","file":"git2/object.h","brief":"Git revision object management routines"},"lines":173,"file":"object.h","functions":["git_object_lookup","git_object_lookup_prefix","git_object_id","git_object_type","git_object_owner","git_object_free","git_object_typeisloose","git_object__size"]},{"meta":{"defgroup":"git_odb Git object database routines","ingroup":"Git","file":"git2/odb.h","brief":"Git object database routines"},"lines":331,"file":"odb.h","functions":["git_odb_new","git_odb_open","git_odb_add_backend","git_odb_add_alternate","git_odb_free","git_odb_read","git_odb_read_prefix","git_odb_read_header","git_odb_exists","git_odb_write","git_odb_open_wstream","git_odb_open_rstream","git_odb_hash","git_odb_hashfile","git_odb_object_free","git_odb_object_id","git_odb_object_data","git_odb_object_size","git_odb_object_type"]},{"meta":{"defgroup":"git_backend Git custom backend API","ingroup":"Git","file":"git2/backend.h","brief":"Git custom backend functions"},"lines":100,"file":"odb_backend.h","functions":["GIT_EXTERN","git_odb_backend_loose"]},{"meta":{"defgroup":"git_oid Git object id routines","ingroup":"Git","file":"git2/oid.h","brief":"Git object id routines"},"lines":223,"file":"oid.h","functions":["git_oid_fromstr","git_oid_fromstrn","git_oid_fromraw","git_oid_fmt","git_oid_pathfmt","git_oid_allocfmt","git_oid_tostr","git_oid_cpy","git_oid_cmp","git_oid_ncmp","git_oid_streq","git_oid_iszero","git_oid_shorten_new","git_oid_shorten_add","git_oid_shorten_free"]},{"meta":{"defgroup":"git_reflog Git reflog management routines","ingroup":"Git","file":"git2/reflog.h","brief":"Git reflog management routines"},"lines":128,"file":"reflog.h","functions":["git_reflog_read","git_reflog_write","git_reflog_rename","git_reflog_delete","git_reflog_entrycount","git_reflog_entry_byindex","git_reflog_entry_oidold","git_reflog_entry_oidnew","git_reflog_entry_committer","git_reflog_entry_msg","git_reflog_free"]},{"meta":{"defgroup":"git_reference Git reference management routines","ingroup":"Git","file":"git2/refs.h","brief":"Git reference management routines"},"lines":329,"file":"refs.h","functions":["git_reference_lookup","git_reference_name_to_oid","git_reference_create_symbolic","git_reference_create_oid","git_reference_oid","git_reference_target","git_reference_type","git_reference_name","git_reference_resolve","git_reference_owner","git_reference_set_target","git_reference_set_oid","git_reference_rename","git_reference_delete","git_reference_packall","git_reference_list","git_reference_foreach","git_reference_is_packed","git_reference_reload","git_reference_free","git_reference_cmp"]},{"meta":{"defgroup":"git_refspec Git refspec attributes","ingroup":"Git","file":"git2/refspec.h","brief":"Git refspec attributes"},"lines":60,"file":"refspec.h","functions":["git_refspec_src","git_refspec_dst","git_refspec_src_matches","git_refspec_transform"]},{"meta":{"defgroup":"git_remote remote management functions","ingroup":"Git","file":"git2/remote.h","brief":"Git remote management functions"},"lines":234,"file":"remote.h","functions":["git_remote_new","git_remote_load","git_remote_save","git_remote_name","git_remote_url","git_remote_set_fetchspec","git_remote_fetchspec","git_remote_set_pushspec","git_remote_pushspec","git_remote_connect","git_remote_ls","git_remote_download","git_remote_connected","git_remote_disconnect","git_remote_free","git_remote_update_tips","git_remote_valid_url","git_remote_supported_url","git_remote_list","git_remote_add"]},{"meta":{"defgroup":"git_repository Git repository management routines","ingroup":"Git","file":"git2/repository.h","brief":"Git repository management routines"},"lines":304,"file":"repository.h","functions":["git_repository_open","git_repository_discover","git_repository_open_ext","git_repository_free","git_repository_init","git_repository_head","git_repository_head_detached","git_repository_head_orphan","git_repository_is_empty","git_repository_path","git_repository_workdir","git_repository_set_workdir","git_repository_is_bare","git_repository_config","git_repository_set_config","git_repository_odb","git_repository_set_odb","git_repository_index","git_repository_set_index"]},{"meta":{"defgroup":"git_revwalk Git revision traversal routines","ingroup":"Git","file":"git2/revwalk.h","brief":"Git revision traversal routines"},"lines":237,"file":"revwalk.h","functions":["git_revwalk_new","git_revwalk_reset","git_revwalk_push","git_revwalk_push_glob","git_revwalk_push_head","git_revwalk_hide","git_revwalk_hide_glob","git_revwalk_hide_head","git_revwalk_push_ref","git_revwalk_hide_ref","git_revwalk_next","git_revwalk_sorting","git_revwalk_free","git_revwalk_repository"]},{"meta":{"defgroup":"git_signature Git signature creation","ingroup":"Git","file":"git2/signature.h","brief":"Git signature creation"},"lines":65,"file":"signature.h","functions":["git_signature_new","git_signature_now","git_signature_dup","git_signature_free"]},{"meta":{"defgroup":"git_status Git file status routines","ingroup":"Git","file":"git2/status.h","brief":"Git file status routines"},"lines":164,"file":"status.h","functions":["git_status_foreach","git_status_foreach_ext","git_status_file","git_status_should_ignore"]},{"meta":{"defgroup":null,"ingroup":null,"file":null,"brief":null},"lines":247,"file":"stdint.h","functions":[]},{"meta":{"defgroup":"git_submodule Git submodule management routines","ingroup":"Git","file":"git2/submodule.h","brief":"Git submodule management utilities"},"lines":103,"file":"submodule.h","functions":["git_submodule_foreach","git_submodule_lookup"]},{"meta":{"defgroup":"git_tag Git tag management","ingroup":"Git","file":"git2/tag.h","brief":"Git tag parsing routines"},"lines":297,"file":"tag.h","functions":["git_tag_lookup","git_tag_lookup_prefix","git_tag_free","git_tag_id","git_tag_target","git_tag_target_oid","git_tag_type","git_tag_name","git_tag_tagger","git_tag_message","git_tag_create","git_tag_create_frombuffer","git_tag_create_lightweight","git_tag_delete","git_tag_list","git_tag_list_match","git_tag_peel"]},{"meta":{"defgroup":"git_thread Threading functions","ingroup":"Git","file":"git2/threads.h","brief":"Library level thread functions"},"lines":48,"file":"threads.h","functions":["git_threads_init","git_threads_shutdown"]},{"meta":{"defgroup":"git_tree Git tree parsing, loading routines","ingroup":"Git","file":"git2/tree.h","brief":"Git tree parsing, loading routines"},"lines":318,"file":"tree.h","functions":["git_tree_lookup","git_tree_lookup_prefix","git_tree_free","git_tree_id","git_tree_entrycount","git_tree_entry_byname","git_tree_entry_byindex","git_tree_entry_attributes","git_tree_entry_name","git_tree_entry_id","git_tree_entry_type","git_tree_entry_to_object","git_tree_create_fromindex","git_treebuilder_create","git_treebuilder_clear","git_treebuilder_free","git_treebuilder_get","git_treebuilder_insert","git_treebuilder_remove","git_treebuilder_filter","git_treebuilder_write","git_tree_get_subtree","git_tree_walk"]},{"meta":{"defgroup":null,"ingroup":"Git","file":"git2/types.h","brief":"libgit2 base & compatibility types"},"lines":177,"file":"types.h","functions":[]},{"meta":{"defgroup":null,"ingroup":null,"file":null,"brief":null},"lines":15,"file":"version.h","functions":[]},{"meta":{"defgroup":null,"ingroup":"Git","file":"git2/windows.h","brief":"Windows-specific functions"},"lines":59,"file":"windows.h","functions":["GIT_EXTERN","gitwin_get_codepage"]}],"prefix":"include/git2","globals":{"INT64_C(val)":{"value":"val##i64","file":"stdint.h","line":233},"GIT_IDXENTRY_INTENT_TO_ADD\t\t(1":{"value":"<< 13)","file":"index.h","line":52},"PRIXFAST32":{"value":"\"I32X\"","file":"inttypes.h","line":129},"PRIxFAST32":{"value":"\"I32x\"","file":"inttypes.h","line":128},"SCNx32":{"value":"\"lx\"","file":"inttypes.h","line":223},"SCNoFAST32":{"value":"\"lo\"","file":"inttypes.h","line":229},"SCNuFAST64":{"value":"\"I64u\"","file":"inttypes.h","line":243},"INT_LEAST64_MAX":{"value":"INT64_MAX","file":"stdint.h","line":153},"PRIuLEAST8":{"value":"\"u\"","file":"inttypes.h","line":97},"PRIdFAST16":{"value":"\"hd\"","file":"inttypes.h","line":68},"SCNd16":{"value":"\"hd\"","file":"inttypes.h","line":162},"GIT_IDXENTRY_NEW_SKIP_WORKTREE":{"value":"(1 << 9)","file":"index.h","line":47},"PRId16":{"value":"\"hd\"","file":"inttypes.h","line":64},"PRIuMAX":{"value":"\"I64u\"","file":"inttypes.h","line":145},"SCNxFAST16":{"value":"\"hx\"","file":"inttypes.h","line":218},"SCNiLEAST32":{"value":"\"li\"","file":"inttypes.h","line":172},"GIT_OID_RAWSZ":{"value":"20","file":"oid.h","line":23},"PRIuFAST8":{"value":"\"u\"","file":"inttypes.h","line":101},"PRIx64":{"value":"\"I64x\"","file":"inttypes.h","line":133},"PRIoLEAST8":{"value":"\"o\"","file":"inttypes.h","line":96},"PRIoMAX":{"value":"\"I64o\"","file":"inttypes.h","line":144},"PRIXLEAST8":{"value":"\"X\"","file":"inttypes.h","line":99},"INT_FAST64_MIN":{"value":"INT64_MIN","file":"stdint.h","line":166},"PRIoFAST8":{"value":"\"o\"","file":"inttypes.h","line":100},"strtoimax":{"value":"_strtoi64","file":"inttypes.h","line":297},"SCNxLEAST8":{"value":"\"x\"","file":"inttypes.h","line":201},"PRIdLEAST64":{"value":"\"I64d\"","file":"inttypes.h","line":80},"GIT_SORT_TOPOLOGICAL":{"value":"(1 << 0)","file":"revwalk.h","line":36},"PRIoPTR":{"value":"\"Io\"","file":"inttypes.h","line":149},"SCNu32":{"value":"\"lu\"","file":"inttypes.h","line":222},"UINT16_MAX":{"value":"_UI16_MAX","file":"stdint.h","line":141},"GIT_IDXENTRY_STAGESHIFT":{"value":"12","file":"index.h","line":27},"PRIX32":{"value":"\"I32X\"","file":"inttypes.h","line":121},"PRIoLEAST16":{"value":"\"ho\"","file":"inttypes.h","line":109},"GIT_IDXENTRY_UPTODATE\t\t\t(1":{"value":"<< 2)","file":"index.h","line":38},"SCNiLEAST8":{"value":"\"i\"","file":"inttypes.h","line":158},"SCNx8":{"value":"\"x\"","file":"inttypes.h","line":197},"UINT_LEAST64_MAX":{"value":"UINT64_MAX","file":"stdint.h","line":157},"PRIuFAST16":{"value":"\"hu\"","file":"inttypes.h","line":114},"PRIu64":{"value":"\"I64u\"","file":"inttypes.h","line":132},"LIBGIT2_VERSION":{"value":"\"0.17.0\"","file":"version.h","line":10},"PRIdFAST64":{"value":"\"I64d\"","file":"inttypes.h","line":82},"GIT_IDXENTRY_UNHASHED\t\t\t(1":{"value":"<< 5)","file":"index.h","line":42},"SCNuFAST32":{"value":"\"lu\"","file":"inttypes.h","line":230},"UINT8_MAX":{"value":"_UI8_MAX","file":"stdint.h","line":140},"UINT64_C(val)":{"value":"val##ui64","file":"stdint.h","line":238},"SCNd8":{"value":"\"d\"","file":"inttypes.h","line":155},"PRIiFAST8":{"value":"\"i\"","file":"inttypes.h","line":62},"SCNxFAST64":{"value":"\"I64x\"","file":"inttypes.h","line":244},"PRIu8":{"value":"\"u\"","file":"inttypes.h","line":93},"INT_FAST16_MIN":{"value":"INT16_MIN","file":"stdint.h","line":162},"PRIx32":{"value":"\"I32x\"","file":"inttypes.h","line":120},"GIT_SORT_TIME\t\t\t(1":{"value":"<< 1)","file":"revwalk.h","line":43},"PRIX8":{"value":"\"X\"","file":"inttypes.h","line":95},"SCNuLEAST8":{"value":"\"u\"","file":"inttypes.h","line":200},"PRIdLEAST16":{"value":"\"hd\"","file":"inttypes.h","line":66},"GIT_ATTR_UNSPECIFIED(attr)\t(!(attr)":{"value":"|| (attr) == git_attr__unset)","file":"attr.h","line":65},"SCNXFAST8":{"value":"\"X\"","file":"inttypes.h","line":206},"INTMAX_MAX":{"value":"INT64_MAX","file":"stdint.h","line":186},"SCNXMAX":{"value":"\"I64X\"","file":"inttypes.h","line":250},"PRIoLEAST64":{"value":"\"I64o\"","file":"inttypes.h","line":135},"UINTMAX_MAX":{"value":"UINT64_MAX","file":"stdint.h","line":187},"GIT_IDXENTRY_UPDATE\t\t\t(1":{"value":"<< 0)","file":"index.h","line":36},"PRIuFAST64":{"value":"\"I64u\"","file":"inttypes.h","line":140},"UINT_FAST32_MAX":{"value":"UINT32_MAX","file":"stdint.h","line":170},"SCNoFAST16":{"value":"\"ho\"","file":"inttypes.h","line":216},"PRIXFAST16":{"value":"\"hX\"","file":"inttypes.h","line":116},"SCNo32":{"value":"\"lo\"","file":"inttypes.h","line":221},"PRIu32":{"value":"\"I32u\"","file":"inttypes.h","line":119},"wcstoimax":{"value":"_wcstoi64","file":"inttypes.h","line":301},"PRIxFAST16":{"value":"\"hx\"","file":"inttypes.h","line":115},"UINT_FAST16_MAX":{"value":"UINT16_MAX","file":"stdint.h","line":169},"INT_LEAST32_MIN":{"value":"INT32_MIN","file":"stdint.h","line":150},"PRIoFAST64":{"value":"\"I64o\"","file":"inttypes.h","line":139},"PRIXLEAST32":{"value":"\"I32X\"","file":"inttypes.h","line":125},"INTMAX_C":{"value":"INT64_C","file":"stdint.h","line":241},"UINT64_MAX":{"value":"_UI64_MAX","file":"stdint.h","line":143},"SCNiLEAST16":{"value":"\"hi\"","file":"inttypes.h","line":165},"PRIxMAX":{"value":"\"I64x\"","file":"inttypes.h","line":146},"SCNX64":{"value":"\"I64X\"","file":"inttypes.h","line":237},"SCNdLEAST32":{"value":"\"ld\"","file":"inttypes.h","line":171},"PRIuLEAST32":{"value":"\"I32u\"","file":"inttypes.h","line":123},"PRIuPTR":{"value":"\"Iu\"","file":"inttypes.h","line":150},"GIT_PATH_LIST_SEPARATOR":{"value":"':'","file":"common.h","line":76},"PRIxPTR":{"value":"\"Ix\"","file":"inttypes.h","line":151},"PRIiMAX":{"value":"\"I64i\"","file":"inttypes.h","line":86},"SIG_ATOMIC_MAX":{"value":"INT_MAX","file":"stdint.h","line":200},"PRIiFAST32":{"value":"\"I32i\"","file":"inttypes.h","line":76},"INT_LEAST16_MIN":{"value":"INT16_MIN","file":"stdint.h","line":148},"PRIx8":{"value":"\"x\"","file":"inttypes.h","line":94},"INT_LEAST64_MIN":{"value":"INT64_MIN","file":"stdint.h","line":152},"PRIX16":{"value":"\"hX\"","file":"inttypes.h","line":108},"SCNoLEAST8":{"value":"\"o\"","file":"inttypes.h","line":199},"PRIiLEAST32":{"value":"\"I32i\"","file":"inttypes.h","line":74},"INT16_C(val)":{"value":"val##i16","file":"stdint.h","line":231},"SCNuLEAST32":{"value":"\"lu\"","file":"inttypes.h","line":226},"PRIxFAST64":{"value":"\"I64x\"","file":"inttypes.h","line":141},"SCNx64":{"value":"\"I64x\"","file":"inttypes.h","line":236},"GIT_IDXENTRY_EXTENDED_FLAGS":{"value":"(GIT_IDXENTRY_INTENT_TO_ADD | GIT_IDXENTRY_SKIP_WORKTREE)","file":"index.h","line":57},"SCNoFAST64":{"value":"\"I64o\"","file":"inttypes.h","line":242},"PRIxLEAST32":{"value":"\"I32x\"","file":"inttypes.h","line":124},"PRIo64":{"value":"\"I64o\"","file":"inttypes.h","line":131},"PRIXFAST64":{"value":"\"I64X\"","file":"inttypes.h","line":142},"INT_FAST8_MAX":{"value":"INT8_MAX","file":"stdint.h","line":161},"SCNuFAST16":{"value":"\"hu\"","file":"inttypes.h","line":217},"GIT_IDXENTRY_ADDED\t\t\t\t(1":{"value":"<< 3)","file":"index.h","line":39},"SCNiFAST8":{"value":"\"i\"","file":"inttypes.h","line":160},"SCNi32":{"value":"\"li\"","file":"inttypes.h","line":170},"PRIxFAST8":{"value":"\"x\"","file":"inttypes.h","line":102},"PRId8":{"value":"\"d\"","file":"inttypes.h","line":57},"SCNoMAX":{"value":"\"I64o\"","file":"inttypes.h","line":247},"GIT_ATTR_FALSE(attr)\t((attr)":{"value":"== git_attr__false)","file":"attr.h","line":47},"GIT_IDXENTRY_SKIP_WORKTREE\t\t(1":{"value":"<< 14)","file":"index.h","line":53},"PRIoFAST16":{"value":"\"ho\"","file":"inttypes.h","line":113},"SCNiLEAST64":{"value":"\"I64i\"","file":"inttypes.h","line":179},"GIT_DIR_PUSH":{"value":"1","file":"net.h","line":31},"SIG_ATOMIC_MIN":{"value":"INT_MIN","file":"stdint.h","line":199},"GIT_OID_MINPREFIXLEN":{"value":"4","file":"oid.h","line":30},"GIT_IDXENTRY_REMOVE\t\t\t(1":{"value":"<< 1)","file":"index.h","line":37},"GIT_IDXENTRY_STAGEMASK":{"value":"(0x3000)","file":"index.h","line":24},"PRIx16":{"value":"\"hx\"","file":"inttypes.h","line":107},"SCNX16":{"value":"\"hX\"","file":"inttypes.h","line":211},"GIT_IDXENTRY_EXTENDED":{"value":"(0x4000)","file":"index.h","line":25},"SCNoLEAST32":{"value":"\"lo\"","file":"inttypes.h","line":225},"SCNxLEAST32":{"value":"\"lx\"","file":"inttypes.h","line":227},"SCNXFAST32":{"value":"\"lX\"","file":"inttypes.h","line":232},"PRIiLEAST64":{"value":"\"I64i\"","file":"inttypes.h","line":81},"SCNu64":{"value":"\"I64u\"","file":"inttypes.h","line":235},"UINT32_C(val)":{"value":"val##ui32","file":"stdint.h","line":237},"INT32_MIN":{"value":"((int32_t)_I32_MIN)","file":"stdint.h","line":136},"SCNi8":{"value":"\"i\"","file":"inttypes.h","line":156},"INT_FAST8_MIN":{"value":"INT8_MIN","file":"stdint.h","line":160},"SCNxFAST8":{"value":"\"x\"","file":"inttypes.h","line":205},"PRIu16":{"value":"\"hu\"","file":"inttypes.h","line":106},"WINT_MIN":{"value":"0","file":"stdint.h","line":218},"UINT_LEAST16_MAX":{"value":"UINT16_MAX","file":"stdint.h","line":155},"GIT_ATTR_TRUE(attr)\t\t((attr)":{"value":"== git_attr__true)","file":"attr.h","line":33},"wcstoumax":{"value":"_wcstoui64","file":"inttypes.h","line":302},"GIT_IDXENTRY_CONFLICTED\t\t(1":{"value":"<< 7)","file":"index.h","line":44},"SCNx16":{"value":"\"hx\"","file":"inttypes.h","line":210},"PRIo32":{"value":"\"I32o\"","file":"inttypes.h","line":118},"PRIXLEAST16":{"value":"\"hX\"","file":"inttypes.h","line":112},"GIT_IDXENTRY_EXTENDED2\t\t\t(1":{"value":"<< 15)","file":"index.h","line":55},"PRIi64":{"value":"\"I64i\"","file":"inttypes.h","line":79},"SCNXLEAST32":{"value":"\"lX\"","file":"inttypes.h","line":228},"SCNd32":{"value":"\"ld\"","file":"inttypes.h","line":169},"SCNdLEAST16":{"value":"\"hd\"","file":"inttypes.h","line":164},"INTMAX_MIN":{"value":"INT64_MIN","file":"stdint.h","line":185},"GIT_IDXENTRY_WT_REMOVE\t\t\t(1":{"value":"<< 6) /* remove in work directory */","file":"index.h","line":43},"PRIuLEAST16":{"value":"\"hu\"","file":"inttypes.h","line":110},"INT8_MIN":{"value":"((int8_t)_I8_MIN)","file":"stdint.h","line":132},"SCNoLEAST64":{"value":"\"I64o\"","file":"inttypes.h","line":238},"PRIiFAST16":{"value":"\"hi\"","file":"inttypes.h","line":69},"SCNiFAST32":{"value":"\"li\"","file":"inttypes.h","line":174},"LIBGIT2_VER_REVISION":{"value":"0","file":"version.h","line":13},"LIBGIT2_VER_MAJOR":{"value":"0","file":"version.h","line":11},"PRIiLEAST16":{"value":"\"hi\"","file":"inttypes.h","line":67},"SCNu16":{"value":"\"hu\"","file":"inttypes.h","line":209},"GIT_IDXENTRY_UNPACKED\t\t\t(1":{"value":"<< 8)","file":"index.h","line":46},"PRIiPTR":{"value":"\"Ii\"","file":"inttypes.h","line":89},"PRIxLEAST8":{"value":"\"x\"","file":"inttypes.h","line":98},"SCNuLEAST16":{"value":"\"hu\"","file":"inttypes.h","line":213},"PRIdMAX":{"value":"\"I64d\"","file":"inttypes.h","line":85},"SCNo64":{"value":"\"I64o\"","file":"inttypes.h","line":234},"SCNuMAX":{"value":"\"I64u\"","file":"inttypes.h","line":248},"PRIdFAST8":{"value":"\"d\"","file":"inttypes.h","line":61},"PRIxLEAST16":{"value":"\"hx\"","file":"inttypes.h","line":111},"PRIXFAST8":{"value":"\"X\"","file":"inttypes.h","line":103},"PRIXLEAST64":{"value":"\"I64X\"","file":"inttypes.h","line":138},"SCNdFAST32":{"value":"\"ld\"","file":"inttypes.h","line":173},"PRIdPTR":{"value":"\"Id\"","file":"inttypes.h","line":88},"GIT_DEFAULT_PORT":{"value":"\"9418\"","file":"net.h","line":22},"GIT_DIR_FETCH":{"value":"0","file":"net.h","line":30},"INT64_MAX":{"value":"_I64_MAX","file":"stdint.h","line":139},"SCNdLEAST64":{"value":"\"I64d\"","file":"inttypes.h","line":178},"PRIi32":{"value":"\"I32i\"","file":"inttypes.h","line":72},"PRId64":{"value":"\"I64d\"","file":"inttypes.h","line":78},"UINTMAX_C":{"value":"UINT64_C","file":"stdint.h","line":242},"INT_FAST32_MAX":{"value":"INT32_MAX","file":"stdint.h","line":165},"UINT_LEAST32_MAX":{"value":"UINT32_MAX","file":"stdint.h","line":156},"PRIuLEAST64":{"value":"\"I64u\"","file":"inttypes.h","line":136},"UINT8_C(val)":{"value":"val##ui8","file":"stdint.h","line":235},"SCNoLEAST16":{"value":"\"ho\"","file":"inttypes.h","line":212},"SCNxLEAST16":{"value":"\"hx\"","file":"inttypes.h","line":214},"PRIiFAST64":{"value":"\"I64i\"","file":"inttypes.h","line":83},"SCNXFAST16":{"value":"\"hX\"","file":"inttypes.h","line":219},"PRIi8":{"value":"\"i\"","file":"inttypes.h","line":58},"GIT_OID_HEXSZ":{"value":"(GIT_OID_RAWSZ * 2)","file":"oid.h","line":26},"SCNxMAX":{"value":"\"I64x\"","file":"inttypes.h","line":249},"SCNuLEAST64":{"value":"\"I64u\"","file":"inttypes.h","line":239},"PRIxLEAST64":{"value":"\"I64x\"","file":"inttypes.h","line":137},"GIT_IDXENTRY_HASHED\t\t\t(1":{"value":"<< 4)","file":"index.h","line":41},"GIT_ATTR_HAS_VALUE(attr)":{"value":"\\","file":"attr.h","line":77},"INT16_MAX":{"value":"_I16_MAX","file":"stdint.h","line":135},"GIT_PATH_MAX":{"value":"4096","file":"common.h","line":82},"PRIo16":{"value":"\"ho\"","file":"inttypes.h","line":105},"INT_LEAST16_MAX":{"value":"INT16_MAX","file":"stdint.h","line":149},"SCNdLEAST8":{"value":"\"d\"","file":"inttypes.h","line":157},"SCNo16":{"value":"\"ho\"","file":"inttypes.h","line":208},"INT_FAST32_MIN":{"value":"INT32_MIN","file":"stdint.h","line":164},"SCNXLEAST16":{"value":"\"hX\"","file":"inttypes.h","line":215},"PRIdLEAST8":{"value":"\"d\"","file":"inttypes.h","line":59},"SCNi64":{"value":"\"I64i\"","file":"inttypes.h","line":177},"UINT16_C(val)":{"value":"val##ui16","file":"stdint.h","line":236},"PRIdFAST32":{"value":"\"I32d\"","file":"inttypes.h","line":75},"INT32_C(val)":{"value":"val##i32","file":"stdint.h","line":232},"UINT_FAST64_MAX":{"value":"UINT64_MAX","file":"stdint.h","line":171},"PRId32":{"value":"\"I32d\"","file":"inttypes.h","line":71},"SCNxFAST32":{"value":"\"lx\"","file":"inttypes.h","line":231},"GIT_IDXENTRY_NAMEMASK":{"value":"(0x0fff)","file":"index.h","line":23},"imaxabs":{"value":"_abs64","file":"inttypes.h","line":269},"PRIo8":{"value":"\"o\"","file":"inttypes.h","line":92},"SCNxLEAST64":{"value":"\"I64x\"","file":"inttypes.h","line":240},"SCNXFAST64":{"value":"\"I64X\"","file":"inttypes.h","line":245},"SCNiFAST16":{"value":"\"hi\"","file":"inttypes.h","line":167},"SCNo8":{"value":"\"o\"","file":"inttypes.h","line":195},"UINT_LEAST8_MAX":{"value":"UINT8_MAX","file":"stdint.h","line":154},"PRIXPTR":{"value":"\"IX\"","file":"inttypes.h","line":152},"INT16_MIN":{"value":"((int16_t)_I16_MIN)","file":"stdint.h","line":134},"SCNdFAST8":{"value":"\"d\"","file":"inttypes.h","line":159},"LIBGIT2_VER_MINOR":{"value":"17","file":"version.h","line":12},"INT_FAST16_MAX":{"value":"INT16_MAX","file":"stdint.h","line":163},"INT_LEAST8_MAX":{"value":"INT8_MAX","file":"stdint.h","line":147},"UINT_FAST8_MAX":{"value":"UINT8_MAX","file":"stdint.h","line":168},"SCNdFAST16":{"value":"\"hd\"","file":"inttypes.h","line":166},"PRIoLEAST32":{"value":"\"I32o\"","file":"inttypes.h","line":122},"SCNuFAST8":{"value":"\"u\"","file":"inttypes.h","line":204},"strtoumax":{"value":"_strtoui64","file":"inttypes.h","line":298},"SCNXLEAST64":{"value":"\"I64X\"","file":"inttypes.h","line":241},"INT32_MAX":{"value":"_I32_MAX","file":"stdint.h","line":137},"PRIuFAST32":{"value":"\"I32u\"","file":"inttypes.h","line":127},"SCNi16":{"value":"\"hi\"","file":"inttypes.h","line":163},"SCNd64":{"value":"\"I64d\"","file":"inttypes.h","line":176},"PRIi16":{"value":"\"hi\"","file":"inttypes.h","line":65},"PRIXMAX":{"value":"\"I64X\"","file":"inttypes.h","line":147},"UINT32_MAX":{"value":"_UI32_MAX","file":"stdint.h","line":142},"SCNiMAX":{"value":"\"I64i\"","file":"inttypes.h","line":184},"SCNoFAST8":{"value":"\"o\"","file":"inttypes.h","line":203},"GIT_SORT_REVERSE\t\t(1":{"value":"<< 2)","file":"revwalk.h","line":50},"GIT_ATTR_CHECK_NO_SYSTEM\t\t(1":{"value":"<< 2)","file":"attr.h","line":109},"PRIoFAST32":{"value":"\"I32o\"","file":"inttypes.h","line":126},"WINT_MAX":{"value":"_UI16_MAX","file":"stdint.h","line":219},"SCNiFAST64":{"value":"\"I64i\"","file":"inttypes.h","line":181},"PRIiLEAST8":{"value":"\"i\"","file":"inttypes.h","line":60},"SCNu8":{"value":"\"u\"","file":"inttypes.h","line":196},"INT_LEAST8_MIN":{"value":"INT8_MIN","file":"stdint.h","line":146},"SCNX32":{"value":"\"lX\"","file":"inttypes.h","line":224},"SCNX8":{"value":"\"X\"","file":"inttypes.h","line":198},"INT_LEAST32_MAX":{"value":"INT32_MAX","file":"stdint.h","line":151},"INT8_C(val)":{"value":"val##i8","file":"stdint.h","line":230},"SCNdMAX":{"value":"\"I64d\"","file":"inttypes.h","line":183},"INT8_MAX":{"value":"_I8_MAX","file":"stdint.h","line":133},"INT64_MIN":{"value":"((int64_t)_I64_MIN)","file":"stdint.h","line":138},"PRIX64":{"value":"\"I64X\"","file":"inttypes.h","line":134},"PRIdLEAST32":{"value":"\"I32d\"","file":"inttypes.h","line":73},"INT_FAST64_MAX":{"value":"INT64_MAX","file":"stdint.h","line":167},"SCNdFAST64":{"value":"\"I64d\"","file":"inttypes.h","line":180},"GIT_WIN32":{"value":"1","file":"common.h","line":55},"SCNXLEAST8":{"value":"\"X\"","file":"inttypes.h","line":202}},"groups":[["GIT",["GIT_EXTERN"]],["attr",["git_attr_add_macro","git_attr_cache_flush","git_attr_foreach","git_attr_get","git_attr_get_many"]],["blob",["git_blob_create_frombuffer","git_blob_create_fromdisk","git_blob_create_fromfile","git_blob_free","git_blob_lookup","git_blob_lookup_prefix","git_blob_rawcontent","git_blob_rawsize"]],["branch",["git_branch_create","git_branch_delete","git_branch_list","git_branch_move"]],["commit",["git_commit_author","git_commit_committer","git_commit_create","git_commit_create_v","git_commit_free","git_commit_id","git_commit_lookup","git_commit_lookup_prefix","git_commit_message","git_commit_message_encoding","git_commit_parent","git_commit_parent_oid","git_commit_parentcount","git_commit_time","git_commit_time_offset","git_commit_tree","git_commit_tree_oid"]],["config",["git_config_add_file","git_config_add_file_ondisk","git_config_delete","git_config_file__ondisk","git_config_find_global","git_config_find_system","git_config_foreach","git_config_free","git_config_get_bool","git_config_get_mapped","git_config_get_multivar","git_config_get_string","git_config_new","git_config_open_global","git_config_open_ondisk","git_config_set_bool","git_config_set_multivar","git_config_set_string"]],["diff",["git_diff_blobs","git_diff_foreach","git_diff_list_free","git_diff_merge","git_diff_print_compact","git_diff_print_patch"]],["giterr",["giterr_clear","giterr_last"]],["gitwin",["gitwin_get_codepage"]],["index",["git_index_add","git_index_append","git_index_clear","git_index_entry_stage","git_index_entrycount","git_index_entrycount_unmerged","git_index_find","git_index_free","git_index_get","git_index_get_unmerged_byindex","git_index_get_unmerged_bypath","git_index_open","git_index_read","git_index_read_tree","git_index_remove","git_index_uniq","git_index_write"]],["indexer",["git_indexer_free","git_indexer_hash","git_indexer_new","git_indexer_run","git_indexer_stream_add","git_indexer_stream_finalize","git_indexer_stream_free","git_indexer_stream_hash","git_indexer_stream_new","git_indexer_write"]],["inttypes",["imaxdiv"]],["merge",["git_merge_base"]],["note",["git_note_create","git_note_default_ref","git_note_foreach","git_note_free","git_note_message","git_note_oid","git_note_read","git_note_remove"]],["object",["git_object__size","git_object_free","git_object_id","git_object_lookup","git_object_lookup_prefix","git_object_owner","git_object_type","git_object_typeisloose"]],["odb",["git_odb_add_alternate","git_odb_add_backend","git_odb_backend_loose","git_odb_exists","git_odb_free","git_odb_hash","git_odb_hashfile","git_odb_new","git_odb_object_data","git_odb_object_free","git_odb_object_id","git_odb_object_size","git_odb_object_type","git_odb_open","git_odb_open_rstream","git_odb_open_wstream","git_odb_read","git_odb_read_header","git_odb_read_prefix","git_odb_write"]],["oid",["git_oid_allocfmt","git_oid_cmp","git_oid_cpy","git_oid_fmt","git_oid_fromraw","git_oid_fromstr","git_oid_fromstrn","git_oid_iszero","git_oid_ncmp","git_oid_pathfmt","git_oid_shorten_add","git_oid_shorten_free","git_oid_shorten_new","git_oid_streq","git_oid_tostr"]],["reference",["git_reference_cmp","git_reference_create_oid","git_reference_create_symbolic","git_reference_delete","git_reference_foreach","git_reference_free","git_reference_is_packed","git_reference_list","git_reference_lookup","git_reference_name","git_reference_name_to_oid","git_reference_oid","git_reference_owner","git_reference_packall","git_reference_reload","git_reference_rename","git_reference_resolve","git_reference_set_oid","git_reference_set_target","git_reference_target","git_reference_type"]],["reflog",["git_reflog_delete","git_reflog_entry_byindex","git_reflog_entry_committer","git_reflog_entry_msg","git_reflog_entry_oidnew","git_reflog_entry_oidold","git_reflog_entrycount","git_reflog_free","git_reflog_read","git_reflog_rename","git_reflog_write"]],["refspec",["git_refspec_dst","git_refspec_src","git_refspec_src_matches","git_refspec_transform"]],["remote",["git_remote_add","git_remote_connect","git_remote_connected","git_remote_disconnect","git_remote_download","git_remote_fetchspec","git_remote_free","git_remote_list","git_remote_load","git_remote_ls","git_remote_name","git_remote_new","git_remote_pushspec","git_remote_save","git_remote_set_fetchspec","git_remote_set_pushspec","git_remote_supported_url","git_remote_update_tips","git_remote_url","git_remote_valid_url"]],["repository",["git_repository_config","git_repository_discover","git_repository_free","git_repository_head","git_repository_head_detached","git_repository_head_orphan","git_repository_index","git_repository_init","git_repository_is_bare","git_repository_is_empty","git_repository_odb","git_repository_open","git_repository_open_ext","git_repository_path","git_repository_set_config","git_repository_set_index","git_repository_set_odb","git_repository_set_workdir","git_repository_workdir"]],["revwalk",["git_revwalk_free","git_revwalk_hide","git_revwalk_hide_glob","git_revwalk_hide_head","git_revwalk_hide_ref","git_revwalk_new","git_revwalk_next","git_revwalk_push","git_revwalk_push_glob","git_revwalk_push_head","git_revwalk_push_ref","git_revwalk_repository","git_revwalk_reset","git_revwalk_sorting"]],["signature",["git_signature_dup","git_signature_free","git_signature_new","git_signature_now"]],["status",["git_status_file","git_status_foreach","git_status_foreach_ext","git_status_should_ignore"]],["strarray",["git_strarray_copy"]],["submodule",["git_submodule_foreach","git_submodule_lookup"]],["tag",["git_tag_create","git_tag_create_frombuffer","git_tag_create_lightweight","git_tag_delete","git_tag_free","git_tag_id","git_tag_list","git_tag_list_match","git_tag_lookup","git_tag_lookup_prefix","git_tag_message","git_tag_name","git_tag_peel","git_tag_tagger","git_tag_target","git_tag_target_oid","git_tag_type"]],["threads",["git_threads_init","git_threads_shutdown"]],["tree",["git_tree_create_fromindex","git_tree_entry_attributes","git_tree_entry_byindex","git_tree_entry_byname","git_tree_entry_id","git_tree_entry_name","git_tree_entry_to_object","git_tree_entry_type","git_tree_entrycount","git_tree_free","git_tree_get_subtree","git_tree_id","git_tree_lookup","git_tree_lookup_prefix","git_tree_walk"]],["treebuilder",["git_treebuilder_clear","git_treebuilder_create","git_treebuilder_filter","git_treebuilder_free","git_treebuilder_get","git_treebuilder_insert","git_treebuilder_remove","git_treebuilder_write"]]],"types":[["_git_oid",{"type":"struct","value":"git_oid","file":"oid.h","tdef":"typedef","line":33,"used":{"needs":[],"returns":[]}}],["git_blob",{"type":"struct","value":"git_blob","file":"types.h","tdef":"typedef","line":105,"used":{"needs":["git_blob_free","git_blob_lookup","git_blob_lookup_prefix","git_blob_rawcontent","git_blob_rawsize","git_diff_blobs"],"returns":[]}}],["git_branch_t",{"type":"enum","value":null,"file":"types.h","tdef":"typedef","line":164,"lineto":167,"used":{"needs":["git_branch_delete"],"returns":[]},"block":"GIT_BRANCH_LOCAL = 1,\nGIT_BRANCH_REMOTE = 2,\n"}],["git_commit",{"type":"struct","value":"git_commit","file":"types.h","tdef":"typedef","line":108,"used":{"needs":["git_commit_author","git_commit_committer","git_commit_create","git_commit_free","git_commit_id","git_commit_lookup","git_commit_lookup_prefix","git_commit_message","git_commit_message_encoding","git_commit_parent","git_commit_parent_oid","git_commit_parentcount","git_commit_time","git_commit_time_offset","git_commit_tree","git_commit_tree_oid"],"returns":[]}}],["git_config",{"type":"struct","value":"git_config","file":"types.h","tdef":"typedef","line":123,"used":{"needs":["git_config_add_file","git_config_add_file_ondisk","git_config_delete","git_config_foreach","git_config_free","git_config_get_bool","git_config_get_mapped","git_config_get_multivar","git_config_get_string","git_config_new","git_config_open_global","git_config_open_ondisk","git_config_set_bool","git_config_set_multivar","git_config_set_string","git_repository_config","git_repository_set_config"],"returns":[]}}],["git_config_file",{"type":"struct","value":"git_config_file","file":"types.h","tdef":"typedef","line":126,"used":{"needs":["git_config_add_file","git_config_file__ondisk"],"returns":[]}}],["git_cvar_map",{"type":"struct","value":null,"file":"config.h","tdef":"typedef","line":47,"lineto":51,"used":{"needs":["git_config_get_mapped"],"returns":[]},"block":"git_cvar_t cvar_type;\nconst char *str_match;\nint map_value;\n"}],["git_cvar_t",{"type":"enum","value":null,"file":"config.h","tdef":"typedef","line":40,"lineto":45,"used":{"needs":[],"returns":[]},"block":"\n/* Open means open the file/database and parse if necessary */\nint (*open)(struct git_config_file *);\nint (*get)(struct git_config_file *, const char *key, const char **value);\nint (*get_multivar)(struct git_config_file *, const char *key, const char *regexp, int (*fn)(const char *, void *), void *data);\nint (*set)(struct git_config_file *, const char *key, const char *value);\nint (*set_multivar)(git_config_file *cfg, const char *name, const char *regexp, const char *value);\nint (*del)(struct git_config_file *, const char *key);\nint (*foreach)(struct git_config_file *, int (*fn)(const char *, const char *, void *), void *data);\nvoid (*free)(struct git_config_file *);\n\nGIT_CVAR_FALSE = 0,\nGIT_CVAR_TRUE = 1,\nGIT_CVAR_INT32,\nGIT_CVAR_STRING\n"}],["git_delta_t",{"type":"enum","value":null,"file":"diff.h","tdef":"typedef","line":82,"lineto":91,"used":{"needs":[],"returns":[]},"block":"GIT_DIFF_FILE_VALID_OID = (1 << 0),\nGIT_DIFF_FILE_FREE_PATH = (1 << 1),\nGIT_DIFF_FILE_BINARY = (1 << 2),\nGIT_DIFF_FILE_NOT_BINARY = (1 << 3),\nGIT_DIFF_FILE_FREE_DATA = (1 << 4),\nGIT_DIFF_FILE_UNMAP_DATA = (1 << 5)\n\n/**\n* What type of change is described by a git_diff_delta?\n*/\nGIT_DELTA_UNMODIFIED = 0,\nGIT_DELTA_ADDED = 1,\nGIT_DELTA_DELETED = 2,\nGIT_DELTA_MODIFIED = 3,\nGIT_DELTA_RENAMED = 4,\nGIT_DELTA_COPIED = 5,\nGIT_DELTA_IGNORED = 6,\nGIT_DELTA_UNTRACKED = 7\n"}],["git_diff_delta",{"type":"struct","value":null,"file":"diff.h","tdef":"typedef","line":117,"lineto":123,"used":{"needs":[],"returns":[]},"block":"git_diff_file old_file;\ngit_diff_file new_file;\ngit_delta_t status;\nunsigned int similarity; /**< for RENAMED and COPIED, value 0-100 */\nint binary;\n"}],["git_diff_file",{"type":"struct","value":null,"file":"diff.h","tdef":"typedef","line":96,"lineto":102,"used":{"needs":[],"returns":[]},"block":"git_oid oid;\nchar *path;\nuint16_t mode;\ngit_off_t size;\nunsigned int flags;\n"}],["git_diff_list",{"type":"struct","value":"git_diff_list","file":"diff.h","tdef":"typedef","line":68,"used":{"needs":["git_diff_foreach","git_diff_list_free","git_diff_merge","git_diff_print_compact","git_diff_print_patch"],"returns":[]}}],["git_diff_options",{"type":"struct","value":null,"file":"diff.h","tdef":"typedef","line":56,"lineto":63,"used":{"needs":["git_diff_blobs"],"returns":[]},"block":"GIT_DIFF_NORMAL = 0,\nGIT_DIFF_REVERSE = (1 << 0),\nGIT_DIFF_FORCE_TEXT = (1 << 1),\nGIT_DIFF_IGNORE_WHITESPACE = (1 << 2),\nGIT_DIFF_IGNORE_WHITESPACE_CHANGE = (1 << 3),\nGIT_DIFF_IGNORE_WHITESPACE_EOL = (1 << 4),\nGIT_DIFF_IGNORE_SUBMODULES = (1 << 5),\nGIT_DIFF_PATIENCE = (1 << 6),\nGIT_DIFF_INCLUDE_IGNORED = (1 << 7),\nGIT_DIFF_INCLUDE_UNTRACKED = (1 << 8),\nGIT_DIFF_INCLUDE_UNMODIFIED = (1 << 9),\nGIT_DIFF_RECURSE_UNTRACKED_DIRS = (1 << 10),\n\n/**\n* Structure describing options about how the diff should be executed.\n*\n* Setting all values of the structure to zero will yield the default\n* values. Similarly, passing NULL for the options structure will\n* give the defaults. The default values are marked below.\n*\n* @todo Most of the parameters here are not actually supported at this time.\n*/\nuint32_t flags;\t\t\t\t/**< defaults to GIT_DIFF_NORMAL */\nuint16_t context_lines;\t\t/**< defaults to 3 */\nuint16_t interhunk_lines;\t/**< defaults to 3 */\nchar *old_prefix;\t\t\t/**< defaults to \"a\" */\nchar *new_prefix;\t\t\t/**< defaults to \"b\" */\ngit_strarray pathspec;\t\t/**< defaults to show all paths */\n"}],["git_diff_range",{"type":"struct","value":null,"file":"diff.h","tdef":"typedef","line":136,"lineto":141,"used":{"needs":[],"returns":[]},"block":"int old_start;\nint old_lines;\nint new_start;\nint new_lines;\n"}],["git_error",{"type":"struct","value":null,"file":"errors.h","tdef":"typedef","line":70,"lineto":73,"used":{"needs":[],"returns":["giterr_last"]},"block":"GIT_SUCCESS = 0,\nGIT_ENOTOID = -2,\nGIT_ENOTFOUND = -3,\nGIT_ENOMEM = -4,\nGIT_EOSERR = -5,\nGIT_EOBJTYPE = -6,\nGIT_ENOTAREPO = -7,\nGIT_EINVALIDTYPE = -8,\nGIT_EMISSINGOBJDATA = -9,\nGIT_EPACKCORRUPTED = -10,\nGIT_EFLOCKFAIL = -11,\nGIT_EZLIB = -12,\nGIT_EBUSY = -13,\nGIT_EBAREINDEX = -14,\nGIT_EINVALIDREFNAME = -15,\nGIT_EREFCORRUPTED = -16,\nGIT_ETOONESTEDSYMREF = -17,\nGIT_EPACKEDREFSCORRUPTED = -18,\nGIT_EINVALIDPATH = -19,\nGIT_EREVWALKOVER = -20,\nGIT_EINVALIDREFSTATE = -21,\nGIT_ENOTIMPLEMENTED = -22,\nGIT_EEXISTS = -23,\nGIT_EOVERFLOW = -24,\nGIT_ENOTNUM = -25,\nGIT_ESTREAM = -26,\nGIT_EINVALIDARGS = -27,\nGIT_EOBJCORRUPTED = -28,\nGIT_EAMBIGUOUS = -29,\nGIT_EPASSTHROUGH = -30,\nGIT_ENOMATCH = -31,\nGIT_ESHORTBUFFER = -32,\n\n/** Generic return codes */\nGIT_OK = 0,\nGIT_ERROR = -1,\nGIT_ENOTFOUND = -3,\nGIT_EEXISTS = -4,\nGIT_EAMBIGUOUS = -5,\nGIT_EBUFS = -6,\n\nGIT_PASSTHROUGH = -30,\nGIT_REVWALKOVER = -31,\n\nchar *message;\nint klass;\n"}],["git_error_t",{"type":"enum","value":null,"file":"errors.h","tdef":"typedef","line":75,"lineto":91,"used":{"needs":[],"returns":[]},"block":"GITERR_NOMEMORY,\nGITERR_OS,\nGITERR_INVALID,\nGITERR_REFERENCE,\nGITERR_ZLIB,\nGITERR_REPOSITORY,\nGITERR_CONFIG,\nGITERR_REGEX,\nGITERR_ODB,\nGITERR_INDEX,\nGITERR_OBJECT,\nGITERR_NET,\nGITERR_TAG,\nGITERR_TREE,\nGITERR_INDEXER,\n"}],["git_index",{"type":"struct","value":"git_index","file":"types.h","tdef":"typedef","line":120,"used":{"needs":["git_index_add","git_index_append","git_index_clear","git_index_entrycount","git_index_entrycount_unmerged","git_index_find","git_index_free","git_index_get","git_index_get_unmerged_byindex","git_index_get_unmerged_bypath","git_index_open","git_index_read","git_index_read_tree","git_index_remove","git_index_uniq","git_index_write","git_repository_index","git_repository_set_index","git_tree_create_fromindex"],"returns":[]}}],["git_index_entry",{"type":"struct","value":null,"file":"index.h","tdef":"typedef","line":67,"lineto":84,"used":{"needs":["git_index_entry_stage"],"returns":["git_index_get"]},"block":"git_index_time ctime;\ngit_index_time mtime;\n\nunsigned int dev;\nunsigned int ino;\nunsigned int mode;\nunsigned int uid;\nunsigned int gid;\ngit_off_t file_size;\n\ngit_oid oid;\n\nunsigned short flags;\nunsigned short flags_extended;\n\nchar *path;\n"}],["git_index_entry_unmerged",{"type":"struct","value":null,"file":"index.h","tdef":"typedef","line":87,"lineto":91,"used":{"needs":[],"returns":["git_index_get_unmerged_byindex","git_index_get_unmerged_bypath"]},"block":"unsigned int mode[3];\ngit_oid oid[3];\nchar *path;\n"}],["git_index_time",{"type":"struct","value":null,"file":"index.h","tdef":"typedef","line":60,"lineto":64,"used":{"needs":[],"returns":[]},"block":"git_time_t seconds;\n/* nsec should not be stored as time_t compatible */\nunsigned int nanoseconds;\n"}],["git_indexer",{"type":"struct","value":"git_indexer","file":"indexer.h","tdef":"typedef","line":25,"used":{"needs":["git_indexer_free","git_indexer_hash","git_indexer_new","git_indexer_run","git_indexer_write"],"returns":[]}}],["git_indexer_stats",{"type":"struct","value":null,"file":"indexer.h","tdef":"typedef","line":19,"lineto":22,"used":{"needs":["git_indexer_run","git_indexer_stream_add","git_indexer_stream_finalize","git_remote_download"],"returns":[]},"block":"unsigned int total;\nunsigned int processed;\n"}],["git_indexer_stream",{"type":"struct","value":"git_indexer_stream","file":"indexer.h","tdef":"typedef","line":26,"used":{"needs":["git_indexer_stream_add","git_indexer_stream_finalize","git_indexer_stream_free","git_indexer_stream_hash","git_indexer_stream_new"],"returns":[]}}],["git_note",{"type":"struct","value":"git_note","file":"types.h","tdef":"typedef","line":135,"used":{"needs":["git_note_free","git_note_message","git_note_oid","git_note_read"],"returns":[]}}],["git_note_data",{"type":"struct","value":null,"file":"notes.h","tdef":"typedef","line":111,"lineto":114,"used":{"needs":["git_note_foreach"],"returns":[]},"block":"git_oid blob_oid;\ngit_oid annotated_object_oid;\n"}],["git_object",{"type":"struct","value":"git_object","file":"types.h","tdef":"typedef","line":96,"used":{"needs":["git_branch_create","git_object_free","git_object_id","git_object_lookup","git_object_lookup_prefix","git_object_owner","git_object_type","git_tag_create","git_tag_create_lightweight","git_tag_peel","git_tag_target","git_tree_entry_to_object"],"returns":[]}}],["git_odb",{"type":"struct","value":"git_odb","file":"types.h","tdef":"typedef","line":78,"used":{"needs":["git_odb_add_alternate","git_odb_add_backend","git_odb_exists","git_odb_free","git_odb_new","git_odb_open","git_odb_open_rstream","git_odb_open_wstream","git_odb_read","git_odb_read_header","git_odb_read_prefix","git_odb_write","git_repository_odb","git_repository_set_odb"],"returns":[]}}],["git_odb_backend",{"type":"struct","value":"git_odb_backend","file":"types.h","tdef":"typedef","line":81,"used":{"needs":["git_odb_add_alternate","git_odb_add_backend","git_odb_backend_loose"],"returns":[]}}],["git_odb_object",{"type":"struct","value":"git_odb_object","file":"types.h","tdef":"typedef","line":84,"used":{"needs":["git_odb_object_data","git_odb_object_free","git_odb_object_id","git_odb_object_size","git_odb_object_type","git_odb_read","git_odb_read_prefix"],"returns":[]}}],["git_odb_stream",{"type":"struct","value":"git_odb_stream","file":"types.h","tdef":"typedef","line":87,"used":{"needs":["git_odb_open_rstream","git_odb_open_wstream"],"returns":[]}}],["git_oid_shorten",{"type":"struct","value":"git_oid_shorten","file":"oid.h","tdef":"typedef","line":170,"used":{"needs":["git_oid_shorten_add","git_oid_shorten_free"],"returns":["git_oid_shorten_new"]}}],["git_otype",{"type":"enum","value":null,"file":"types.h","tdef":"typedef","line":64,"lineto":75,"used":{"needs":["git_object__size","git_object_lookup","git_object_lookup_prefix","git_object_typeisloose","git_odb_hash","git_odb_hashfile","git_odb_open_wstream","git_odb_read_header","git_odb_write"],"returns":[]},"block":"GIT_OBJ_ANY = -2,\t\t/**< Object can be any of the following */\nGIT_OBJ_BAD = -1,\t\t/**< Object is invalid. */\nGIT_OBJ__EXT1 = 0,\t\t/**< Reserved for future use. */\nGIT_OBJ_COMMIT = 1,\t\t/**< A commit object. */\nGIT_OBJ_TREE = 2,\t\t/**< A tree (directory listing) object. */\nGIT_OBJ_BLOB = 3,\t\t/**< A file revision object. */\nGIT_OBJ_TAG = 4,\t\t/**< An annotated tag object. */\nGIT_OBJ__EXT2 = 5,\t\t/**< Reserved for future use. */\nGIT_OBJ_OFS_DELTA = 6, /**< A delta, base is given by an offset. */\nGIT_OBJ_REF_DELTA = 7, /**< A delta, base is given by object id. */\n"}],["git_ref_t",{"type":"enum","value":null,"file":"types.h","tdef":"typedef","line":154,"lineto":161,"used":{"needs":[],"returns":[]},"block":"GIT_REF_INVALID = 0, /** Invalid reference */\nGIT_REF_OID = 1, /** A reference which points at an object id */\nGIT_REF_SYMBOLIC = 2, /** A reference which points at another reference */\nGIT_REF_PACKED = 4,\nGIT_REF_HAS_PEEL = 8,\nGIT_REF_LISTALL = GIT_REF_OID|GIT_REF_SYMBOLIC|GIT_REF_PACKED,\n"}],["git_reference",{"type":"struct","value":"git_reference","file":"types.h","tdef":"typedef","line":151,"used":{"needs":["git_reference_cmp","git_reference_create_oid","git_reference_create_symbolic","git_reference_delete","git_reference_free","git_reference_is_packed","git_reference_lookup","git_reference_name","git_reference_oid","git_reference_owner","git_reference_reload","git_reference_rename","git_reference_resolve","git_reference_set_oid","git_reference_set_target","git_reference_target","git_reference_type","git_reflog_delete","git_reflog_read","git_reflog_rename","git_reflog_write","git_repository_head"],"returns":[]}}],["git_reflog",{"type":"struct","value":"git_reflog","file":"types.h","tdef":"typedef","line":132,"used":{"needs":["git_reflog_entry_byindex","git_reflog_entrycount","git_reflog_free","git_reflog_read"],"returns":[]}}],["git_reflog_entry",{"type":"struct","value":"git_reflog_entry","file":"types.h","tdef":"typedef","line":129,"used":{"needs":["git_reflog_entry_committer","git_reflog_entry_msg","git_reflog_entry_oidnew","git_reflog_entry_oidold"],"returns":["git_reflog_entry_byindex"]}}],["git_refspec",{"type":"struct","value":"git_refspec","file":"types.h","tdef":"typedef","line":169,"used":{"needs":["git_refspec_dst","git_refspec_src","git_refspec_src_matches","git_refspec_transform"],"returns":["git_remote_fetchspec","git_remote_pushspec"]}}],["git_remote",{"type":"struct","value":"git_remote","file":"types.h","tdef":"typedef","line":170,"used":{"needs":["git_remote_add","git_remote_connect","git_remote_connected","git_remote_disconnect","git_remote_download","git_remote_fetchspec","git_remote_free","git_remote_load","git_remote_ls","git_remote_name","git_remote_new","git_remote_pushspec","git_remote_save","git_remote_set_fetchspec","git_remote_set_pushspec","git_remote_update_tips","git_remote_url"],"returns":[]}}],["git_remote_head",{"type":"struct","value":"git_remote_head","file":"types.h","tdef":"typedef","line":172,"used":{"needs":[],"returns":[]}}],["git_repository",{"type":"struct","value":"git_repository","file":"types.h","tdef":"typedef","line":93,"used":{"needs":["git_attr_add_macro","git_attr_cache_flush","git_attr_foreach","git_attr_get","git_attr_get_many","git_blob_create_frombuffer","git_blob_create_fromdisk","git_blob_create_fromfile","git_blob_lookup","git_blob_lookup_prefix","git_branch_create","git_branch_delete","git_branch_list","git_branch_move","git_commit_create","git_commit_create_v","git_commit_lookup","git_commit_lookup_prefix","git_merge_base","git_note_create","git_note_default_ref","git_note_foreach","git_note_read","git_note_remove","git_object_lookup","git_object_lookup_prefix","git_reference_create_oid","git_reference_create_symbolic","git_reference_foreach","git_reference_list","git_reference_lookup","git_reference_name_to_oid","git_reference_packall","git_remote_add","git_remote_list","git_remote_load","git_remote_new","git_repository_config","git_repository_free","git_repository_head","git_repository_head_detached","git_repository_head_orphan","git_repository_index","git_repository_init","git_repository_is_bare","git_repository_is_empty","git_repository_odb","git_repository_open","git_repository_open_ext","git_repository_path","git_repository_set_config","git_repository_set_index","git_repository_set_odb","git_repository_set_workdir","git_repository_workdir","git_revwalk_new","git_status_file","git_status_foreach","git_status_foreach_ext","git_status_should_ignore","git_submodule_foreach","git_submodule_lookup","git_tag_create","git_tag_create_frombuffer","git_tag_create_lightweight","git_tag_delete","git_tag_list","git_tag_list_match","git_tag_lookup","git_tag_lookup_prefix","git_tree_entry_to_object","git_tree_lookup","git_tree_lookup_prefix","git_treebuilder_write"],"returns":["git_object_owner","git_reference_owner","git_revwalk_repository"]}}],["git_revwalk",{"type":"struct","value":"git_revwalk","file":"types.h","tdef":"typedef","line":99,"used":{"needs":["git_revwalk_free","git_revwalk_hide","git_revwalk_hide_glob","git_revwalk_hide_head","git_revwalk_hide_ref","git_revwalk_new","git_revwalk_next","git_revwalk_push","git_revwalk_push_glob","git_revwalk_push_head","git_revwalk_push_ref","git_revwalk_repository","git_revwalk_reset","git_revwalk_sorting"],"returns":[]}}],["git_signature",{"type":"struct","value":null,"file":"types.h","tdef":"typedef","line":144,"lineto":148,"used":{"needs":["git_commit_create","git_commit_create_v","git_note_create","git_note_remove","git_reflog_write","git_signature_dup","git_signature_free","git_signature_new","git_signature_now","git_tag_create"],"returns":["git_commit_author","git_commit_committer","git_reflog_entry_committer","git_signature_dup","git_tag_tagger"]},"block":"char *name; /** full name of the author */\nchar *email; /** email of the author */\ngit_time when; /** time when the action happened */\n"}],["git_status_options",{"type":"struct","value":null,"file":"status.h","tdef":"typedef","line":113,"lineto":117,"used":{"needs":["git_status_foreach_ext"],"returns":[]},"block":"GIT_STATUS_OPT_INCLUDE_UNTRACKED = (1 << 0),\nGIT_STATUS_OPT_INCLUDE_IGNORED = (1 << 1),\nGIT_STATUS_OPT_INCLUDE_UNMODIFIED = (1 << 2),\nGIT_STATUS_OPT_EXCLUDE_SUBMODULED = (1 << 3),\nGIT_STATUS_OPT_RECURSE_UNTRACKED_DIRS = (1 << 4),\n\n/**\n* Options to control how callbacks will be made by\n* `git_status_foreach_ext()`.\n*/\ngit_status_show_t show;\nunsigned int flags;\ngit_strarray pathspec;\n"}],["git_status_show_t",{"type":"enum","value":null,"file":"status.h","tdef":"typedef","line":71,"lineto":76,"used":{"needs":[],"returns":[]},"block":"GIT_STATUS_CURRENT\t= 0,\n\nGIT_STATUS_INDEX_NEW = (1 << 0),\nGIT_STATUS_INDEX_MODIFIED = (1 << 1),\nGIT_STATUS_INDEX_DELETED = (1 << 2),\n\nGIT_STATUS_WT_NEW = (1 << 3),\nGIT_STATUS_WT_MODIFIED = (1 << 4),\nGIT_STATUS_WT_DELETED = (1 << 5),\n\nGIT_STATUS_IGNORED = (1 << 6),\n\n/**\n* Gather file statuses and run a callback for each one.\n*\n* The callback is passed the path of the file, the status and the data\n* pointer passed to this function. If the callback returns something other\n* than 0, this function will return that value.\n*\n* @param repo a repository object\n* @param callback the function to call on each file\n* @return 0 on success or the return value of the callback that was non-zero\n*/\nGIT_EXTERN(int) git_status_foreach(\ngit_repository *repo,\nint (*callback)(const char *, unsigned int, void *),\nvoid *payload);\n\n/**\n* Select the files on which to report status.\n*\n* - GIT_STATUS_SHOW_INDEX_AND_WORKDIR is the default. This is the\n* rough equivalent of `git status --porcelain` where each file\n* will receive a callback indicating its status in the index and\n* in the workdir.\n* - GIT_STATUS_SHOW_INDEX_ONLY will only make callbacks for index\n* side of status. The status of the index contents relative to\n* the HEAD will be given.\n* - GIT_STATUS_SHOW_WORKDIR_ONLY will only make callbacks for the\n* workdir side of status, reporting the status of workdir content\n* relative to the index.\n* - GIT_STATUS_SHOW_INDEX_THEN_WORKDIR behaves like index-only\n* followed by workdir-only, causing two callbacks to be issued\n* per file (first index then workdir). This is slightly more\n* efficient than making separate calls. This makes it easier to\n* emulate the output of a plain `git status`.\n*/\nGIT_STATUS_SHOW_INDEX_AND_WORKDIR = 0,\nGIT_STATUS_SHOW_INDEX_ONLY = 1,\nGIT_STATUS_SHOW_WORKDIR_ONLY = 2,\nGIT_STATUS_SHOW_INDEX_THEN_WORKDIR = 3,\n"}],["git_strarray",{"type":"struct","value":null,"file":"common.h","tdef":"typedef","line":84,"lineto":87,"used":{"needs":["git_branch_list","git_reference_list","git_remote_list","git_strarray_copy","git_tag_list","git_tag_list_match"],"returns":[]},"block":"char **strings;\nsize_t count;\n"}],["git_submodule",{"type":"struct","value":null,"file":"submodule.h","tdef":"typedef","line":58,"lineto":67,"used":{"needs":["git_submodule_lookup"],"returns":[]},"block":"char *name;\nchar *path;\nchar *url;\ngit_oid oid; /* sha1 of submodule HEAD ref or zero if not committed */\ngit_submodule_update_t update;\ngit_submodule_ignore_t ignore;\nint fetch_recurse;\nint refcount;\n"}],["git_submodule_ignore_t",{"type":"enum","value":null,"file":"submodule.h","tdef":"typedef","line":29,"lineto":34,"used":{"needs":[],"returns":[]},"block":"GIT_SUBMODULE_IGNORE_ALL = 0, /* never dirty */\nGIT_SUBMODULE_IGNORE_DIRTY = 1, /* only dirty if HEAD moved */\nGIT_SUBMODULE_IGNORE_UNTRACKED = 2, /* dirty if tracked files change */\nGIT_SUBMODULE_IGNORE_NONE = 3 /* any change or untracked == dirty */\n"}],["git_submodule_update_t",{"type":"enum","value":null,"file":"submodule.h","tdef":"typedef","line":23,"lineto":27,"used":{"needs":[],"returns":[]},"block":"GIT_SUBMODULE_UPDATE_CHECKOUT = 0,\nGIT_SUBMODULE_UPDATE_REBASE = 1,\nGIT_SUBMODULE_UPDATE_MERGE = 2\n"}],["git_tag",{"type":"struct","value":"git_tag","file":"types.h","tdef":"typedef","line":102,"used":{"needs":["git_tag_free","git_tag_id","git_tag_lookup","git_tag_lookup_prefix","git_tag_message","git_tag_name","git_tag_peel","git_tag_tagger","git_tag_target","git_tag_target_oid","git_tag_type"],"returns":[]}}],["git_time",{"type":"struct","value":null,"file":"types.h","tdef":"typedef","line":138,"lineto":141,"used":{"needs":[],"returns":[]},"block":"git_time_t time; /** time in seconds from epoch */\nint offset; /** timezone offset, in minutes */\n"}],["git_tree",{"type":"struct","value":"git_tree","file":"types.h","tdef":"typedef","line":114,"used":{"needs":["git_commit_create","git_commit_create_v","git_commit_tree","git_index_read_tree","git_tree_entry_byindex","git_tree_entry_byname","git_tree_entrycount","git_tree_free","git_tree_get_subtree","git_tree_id","git_tree_lookup","git_tree_lookup_prefix","git_tree_walk","git_treebuilder_create"],"returns":[]}}],["git_tree_entry",{"type":"struct","value":"git_tree_entry","file":"types.h","tdef":"typedef","line":111,"used":{"needs":["git_tree_entry_attributes","git_tree_entry_id","git_tree_entry_name","git_tree_entry_to_object","git_tree_entry_type","git_treebuilder_filter","git_treebuilder_insert"],"returns":["git_tree_entry_byindex","git_tree_entry_byname","git_treebuilder_get"]}}],["git_treebuilder",{"type":"struct","value":"git_treebuilder","file":"types.h","tdef":"typedef","line":117,"used":{"needs":["git_treebuilder_clear","git_treebuilder_create","git_treebuilder_filter","git_treebuilder_free","git_treebuilder_get","git_treebuilder_insert","git_treebuilder_remove","git_treebuilder_write"],"returns":[]}}],["imaxdiv_t",{"type":"struct","value":null,"file":"inttypes.h","tdef":"typedef","line":47,"lineto":50,"used":{"needs":["imaxdiv"],"returns":["imaxdiv"]},"block":"intmax_t quot;\nintmax_t rem;\n"}],["}",{"type":"struct","value":null,"file":"config.h","tdef":"typedef","line":47,"lineto":331,"used":{"needs":[],"returns":[]},"block":""}]]} \ No newline at end of file
diff --git a/git2.nobj.lua b/git2.nobj.lua
index c17b457..8d502a2 100644
--- a/git2.nobj.lua
+++ b/git2.nobj.lua
@@ -8,6 +8,10 @@ hide_meta_info = false, --true,
include "git2.h",
+doc[[
+See <a href="http://libgit2.github.com/libgit2/#HEAD">libgit2 API docs</a>.
+]],
+
-- Error codes
export_definitions {
OK = "GIT_OK",
@@ -72,3 +76,38 @@ subfiles {
},
}
+--
+-- Load parsed libgit2 docs.
+--
+local json = require"json"
+local file = io.open("docs/libgit2.json", "r")
+local libgit2_docs = json.decode(file:read("*a"))
+file:close()
+
+local lg_funcs = libgit2_docs.functions
+
+-- Copy docs from libgit2
+reg_stage_parser("pre_gen",{
+c_call = function(self, rec, parent)
+ local func = lg_funcs[rec.cfunc]
+ if not func then return end
+ -- copy C function description
+ parent:add_record(doc(
+ '<p>Calls <a href="http://libgit2.github.com/libgit2/#HEAD/group/' ..
+ func.group .. '/' .. rec.cfunc .. '">' .. rec.cfunc .. '</a>:<p>' ..
+ '<p>' .. func.comments:gsub("\n\n", "<p>")
+ ))
+ -- copy C arg description
+ local var_map = parent.var_map
+ local args = func.args
+ for i=1,#args do
+ local arg = args[i]
+ local name = arg.name
+ local var = var_map[name]
+ if var then
+ var.desc = arg.comment
+ end
+ end
+end,
+})
+