libgit2_d.repository

Undocumented in source.

Members

Aliases

git_repository_fetchhead_foreach_cb
alias git_repository_fetchhead_foreach_cb = int function(const(char)* ref_name, const(char)* remote_url, const(libgit2_d.oid.git_oid)* oid, uint is_merge, void* payload)

Callback used to iterate over each FETCH_HEAD entry

git_repository_mergehead_foreach_cb
alias git_repository_mergehead_foreach_cb = int function(const(libgit2_d.oid.git_oid)* oid, void* payload)

Callback used to iterate over each MERGE_HEAD entry

Enums

git_repository_init_flag_t
enum git_repository_init_flag_t

Option flags for git_repository_init_ext.

git_repository_init_mode_t
enum git_repository_init_mode_t

Mode options for git_repository_init_ext.

git_repository_item_t
enum git_repository_item_t

List of items which belong to the git repository layout

git_repository_open_flag_t
enum git_repository_open_flag_t

Option flags for git_repository_open_ext.

git_repository_state_t
enum git_repository_state_t

Repository state

Functions

GIT_REPOSITORY_INIT_OPTIONS_INIT
GIT_REPOSITORY_INIT_OPTIONS_INIT()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_repository_commondir
const(char)* git_repository_commondir(const(libgit2_d.types.git_repository)* repo)

Get the path of the shared common directory for this repository

git_repository_config
int git_repository_config(libgit2_d.types.git_config** out_, libgit2_d.types.git_repository* repo)

Get the configuration file for this repository.

git_repository_config_snapshot
int git_repository_config_snapshot(libgit2_d.types.git_config** out_, libgit2_d.types.git_repository* repo)

Get a snapshot of the repository's configuration

git_repository_detach_head
int git_repository_detach_head(libgit2_d.types.git_repository* repo)

Detach the HEAD.

git_repository_discover
int git_repository_discover(libgit2_d.buffer.git_buf* out_, const(char)* start_path, int across_fs, const(char)* ceiling_dirs)

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_repository_fetchhead_foreach
int git_repository_fetchhead_foreach(libgit2_d.types.git_repository* repo, .git_repository_fetchhead_foreach_cb callback, void* payload)

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

git_repository_free
void git_repository_free(libgit2_d.types.git_repository* repo)

Free a previously allocated repository

git_repository_get_namespace
const(char)* git_repository_get_namespace(libgit2_d.types.git_repository* repo)

Get the currently active namespace for this repository

git_repository_hashfile
int git_repository_hashfile(libgit2_d.oid.git_oid* out_, libgit2_d.types.git_repository* repo, const(char)* path, libgit2_d.types.git_object_t type, const(char)* as_path)

Calculate hash of file using repository filtering rules.

git_repository_head
int git_repository_head(libgit2_d.types.git_reference** out_, libgit2_d.types.git_repository* repo)

Retrieve and resolve the reference pointed at by HEAD.

git_repository_head_detached
int git_repository_head_detached(libgit2_d.types.git_repository* repo)

Check if a repository's HEAD is detached

git_repository_head_detached_for_worktree
int git_repository_head_detached_for_worktree(libgit2_d.types.git_repository* repo, const(char)* name)

Check if a worktree's HEAD is detached

git_repository_head_for_worktree
int git_repository_head_for_worktree(libgit2_d.types.git_reference** out_, libgit2_d.types.git_repository* repo, const(char)* name)

Retrieve the referenced HEAD for the worktree

git_repository_head_unborn
int git_repository_head_unborn(libgit2_d.types.git_repository* repo)

Check if the current branch is unborn

git_repository_ident
int git_repository_ident(const(char)** name, const(char)** email, const(libgit2_d.types.git_repository)* repo)

Retrieve the configured identity to use for reflogs

git_repository_index
int git_repository_index(libgit2_d.types.git_index** out_, libgit2_d.types.git_repository* repo)

Get the Index file for this repository.

git_repository_init
int git_repository_init(libgit2_d.types.git_repository** out_, const(char)* path, uint is_bare)

Creates a new Git repository in the given folder.

git_repository_init_ext
int git_repository_init_ext(libgit2_d.types.git_repository** out_, const(char)* repo_path, .git_repository_init_options* opts)

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

git_repository_init_options_init
int git_repository_init_options_init(.git_repository_init_options* opts, uint version_)

Initialize git_repository_init_options structure

git_repository_is_bare
int git_repository_is_bare(const(libgit2_d.types.git_repository)* repo)

Check if a repository is bare

git_repository_is_empty
int git_repository_is_empty(libgit2_d.types.git_repository* repo)

Check if a repository is empty

git_repository_is_shallow
int git_repository_is_shallow(libgit2_d.types.git_repository* repo)

Determine if the repository was a shallow clone

git_repository_is_worktree
int git_repository_is_worktree(const(libgit2_d.types.git_repository)* repo)

Check if a repository is a linked work tree

git_repository_item_path
int git_repository_item_path(libgit2_d.buffer.git_buf* out_, const(libgit2_d.types.git_repository)* repo, .git_repository_item_t item)

Get the location of a specific repository file or directory

git_repository_mergehead_foreach
int git_repository_mergehead_foreach(libgit2_d.types.git_repository* repo, .git_repository_mergehead_foreach_cb callback, void* payload)

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

git_repository_message
int git_repository_message(libgit2_d.buffer.git_buf* out_, libgit2_d.types.git_repository* repo)

Retrieve git's prepared message

git_repository_message_remove
int git_repository_message_remove(libgit2_d.types.git_repository* repo)

Remove git's prepared message.

git_repository_odb
int git_repository_odb(libgit2_d.types.git_odb** out_, libgit2_d.types.git_repository* repo)

Get the Object Database for this repository.

git_repository_open
int git_repository_open(libgit2_d.types.git_repository** out_, const(char)* path)

Open a git repository.

git_repository_open_bare
int git_repository_open_bare(libgit2_d.types.git_repository** out_, const(char)* bare_path)

Open a bare repository on the serverside.

git_repository_open_ext
int git_repository_open_ext(libgit2_d.types.git_repository** out_, const(char)* path, uint flags, const(char)* ceiling_dirs)

Find and open a repository with extended controls.

git_repository_open_from_worktree
int git_repository_open_from_worktree(libgit2_d.types.git_repository** out_, libgit2_d.types.git_worktree* wt)

Open working tree as a repository

git_repository_path
const(char)* git_repository_path(const(libgit2_d.types.git_repository)* repo)

Get the path of this repository

git_repository_refdb
int git_repository_refdb(libgit2_d.types.git_refdb** out_, libgit2_d.types.git_repository* repo)

Get the Reference Database Backend for this repository.

git_repository_set_head
int git_repository_set_head(libgit2_d.types.git_repository* repo, const(char)* refname)

Make the repository HEAD point to the specified reference.

git_repository_set_head_detached
int git_repository_set_head_detached(libgit2_d.types.git_repository* repo, const(libgit2_d.oid.git_oid)* commitish)

Make the repository HEAD directly point to the Commit.

git_repository_set_head_detached_from_annotated
int git_repository_set_head_detached_from_annotated(libgit2_d.types.git_repository* repo, const(libgit2_d.types.git_annotated_commit)* commitish)

Make the repository HEAD directly point to the Commit.

git_repository_set_ident
int git_repository_set_ident(libgit2_d.types.git_repository* repo, const(char)* name, const(char)* email)

Set the identity to be used for writing reflogs

git_repository_set_namespace
int git_repository_set_namespace(libgit2_d.types.git_repository* repo, const(char)* nmspace)

Sets the active namespace for this Git Repository

git_repository_set_workdir
int git_repository_set_workdir(libgit2_d.types.git_repository* repo, const(char)* workdir, int update_gitlink)

Set the path to the working directory for this repository

git_repository_state
int git_repository_state(libgit2_d.types.git_repository* repo)

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

git_repository_state_cleanup
int git_repository_state_cleanup(libgit2_d.types.git_repository* repo)

Remove all the metadata associated with an ongoing command like merge, revert, cherry-pick, etc. For example: MERGE_HEAD, MERGE_MSG, etc.

git_repository_workdir
const(char)* git_repository_workdir(const(libgit2_d.types.git_repository)* repo)

Get the path of the working directory for this repository

git_repository_wrap_odb
int git_repository_wrap_odb(libgit2_d.types.git_repository** out_, libgit2_d.types.git_odb* odb)

Create a "fake" repository to wrap an object database

Manifest constants

GIT_REPOSITORY_INIT_OPTIONS_VERSION
enum GIT_REPOSITORY_INIT_OPTIONS_VERSION;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

git_repository_init_options
struct git_repository_init_options

Extended options structure for git_repository_init_ext.

Meta