libgit2

repository

Version:
Git repository management routines

Objects

Representation of an existing git repository, including all its object contents

Structs

Macros

Enums

Callbacks

Callback used to iterate over each FETCH_HEAD entry

Callback used to iterate over each MERGE_HEAD entry

Functions

Open a git repository

Open working tree as a repository

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).

Find and open a repository with extended controls

Open a bare repository on the serverside

Free a previously allocated repository

Creates a new Git repository in the given folder

Initialize git_repository_init_options structure

Create a new Git repository in the given folder with extended controls

Retrieve and resolve the reference pointed at by HEAD

Retrieve the referenced HEAD for the worktree

Check if a repository's HEAD is detached

Check if a worktree's HEAD is detached

Check if the current branch is unborn

Check if a repository is empty

Get the location of a specific repository file or directory

Get the path of this repository

Get the path of the working directory for this repository

Get the path of the shared common directory for this repository

Set the path to the working directory for this repository

Check if a repository is bare

Check if a repository is a linked work tree

Get the configuration file for this repository

Get a snapshot of the repository's configuration

Get the Object Database for this repository

Get the Reference Database Backend for this repository

Get the Index file for this repository

Retrieve git's prepared message

Remove git's prepared message

Remove all the metadata associated with an ongoing command like merge, revert, cherry-pick, etc

Invoke 'callback' for each entry in the given FETCH_HEAD file

If a merge is in progress, invoke 'callback' for each commit ID in the MERGE_HEAD file

Calculate hash of file using repository filtering rules

Make the repository HEAD point to the specified reference

Make the repository HEAD directly point to the Commit

Make the repository HEAD directly point to the Commit

Determines the status of a git repository - ie, whether an operation (merge, cherry-pick, etc) is in progress

Sets the active namespace for this Git Repository

Get the currently active namespace for this repository

Determine if the repository was a shallow clone

Retrieve the configured identity to use for reflogs

Set the identity to be used for writing reflogs

Gets the object type used by this repository

Gets the parents of the next commit, given the current repository state Generally, this is the HEAD commit, except when performing a merge, in which case it is two or more commits.