git.repository

Undocumented in source.

Members

Aliases

FetchHeadDelegate
alias FetchHeadDelegate = ContinueWalk delegate(in char[] refName, in char[] remoteURL, GitOid oid, bool isMerge)

The function or delegate type that walkFetchHead can take as the callback.

FetchHeadFunction
alias FetchHeadFunction = ContinueWalk function(in char[] refName, in char[] remoteURL, GitOid oid, bool isMerge)
FetchHeadOpApply
alias FetchHeadOpApply = int delegate(in char[] refName, in char[] remoteURL, GitOid oid, bool isMerge)

The function or delegate type that walkFetchHead can take as the callback.

MergeHeadDelegate
alias MergeHeadDelegate = ContinueWalk delegate(GitOid oid)

The function or delegate type that walkMergeHead can take as the callback.

MergeHeadFunction
alias MergeHeadFunction = ContinueWalk function(GitOid oid)
MergeHeadOpApply
alias MergeHeadOpApply = int delegate(GitOid oid)

The function or delegate type that walkMergeHead can take as the callback.

Enums

AcrossFS
enum AcrossFS

Used to specify whether to continue search on a file system change.

OpenBare
enum OpenBare

Used to specify whether to open a bare repository

RepoState
enum RepoState

The various states a repository can be in.

UpdateGitlink
enum UpdateGitlink

Used to specify whether to continue search on a file system change.

Functions

discoverRepo
string discoverRepo(char[] startPath, string[] ceilingDirs, AcrossFS acrossFS)

Discover a git repository and return its path if found.

git_repository_config
int git_repository_config(git_config** out_, git_repository* repo)

Get the configuration file for this repository.

git_repository_head
int git_repository_head(git_reference** out_, git_repository* repo)

Retrieve and resolve the reference pointed at by HEAD.

git_repository_index
int git_repository_index(git_index** out_, git_repository* repo)

Get the Index file for this repository.

git_repository_init_ext
int git_repository_init_ext(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_odb
int git_repository_odb(git_odb** out_, git_repository* repo)

Get the Object Database for this repository.

git_repository_open_bare
int git_repository_open_bare(git_repository** out_, const(char)* bare_path)

Open a bare repository on the serverside.

git_repository_refdb
int git_repository_refdb(git_refdb** out_, git_repository* repo)

Get the Reference Database Backend for this repository.

git_repository_wrap_odb
int git_repository_wrap_odb(git_repository** out_, git_odb* odb)

Create a "fake" repository to wrap an object database

initRepo
GitRepo initRepo(char[] path, OpenBare openBare)

Create a new Git repository in the given folder.

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.
_baseTestDir
enum _baseTestDir;
Undocumented in source.
_testRepo
enum _testRepo;
Undocumented in source.

Structs

FetchHeadItem
struct FetchHeadItem

A single item in the list of the FETCH_HEAD file.

GitRepo
struct GitRepo

The structure representing a git repository.

MergeHeadItem
struct MergeHeadItem

A single item in the list of the MERGE_HEAD file.

git_repository_init_options
struct git_repository_init_options

Extended options structure for git_repository_init_ext.

Variables

GIT_REPOSITORY_INIT_OPTIONS_INIT
enum git_repository_init_options 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.
_userRepo
string _userRepo;
Undocumented in source.

Meta