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.

initRepo
alias initRepo = initRepository
Undocumented in source.

Enums

AcrossFS
enum AcrossFS

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

GitRepositoryInitFlags
enum GitRepositoryInitFlags
Undocumented in source.
GitRepositoryInitMode
enum GitRepositoryInitMode
Undocumented in source.
GitRepositoryOpenFlags
enum GitRepositoryOpenFlags
Undocumented in source.
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)
Undocumented in source.
git_repository_odb
int git_repository_odb(git_odb** out_, git_repository* repo)
Undocumented in source.
git_repository_refdb
int git_repository_refdb(git_refdb** out_, git_repository* repo)
Undocumented in source.
git_repository_wrap_odb
int git_repository_wrap_odb(git_repository** out_, git_odb* odb)

TODO: Functions to wrap later:

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

Create a new Git repository in the given folder.

initRepository
GitRepo initRepository(string path, GitRepositoryInitOptions options)
Undocumented in source. Be warned that the author may not have intended to support it.
openBareRepository
GitRepo openBareRepository(string bare_path)
Undocumented in source. Be warned that the author may not have intended to support it.
openRepository
GitRepo openRepository(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
openRepositoryExt
GitRepo openRepositoryExt(string path, GitRepositoryOpenFlags flags, string ceiling_dirs)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

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

GitRepositoryInitOptions
struct GitRepositoryInitOptions
Undocumented in source.
MergeHeadItem
struct MergeHeadItem

A single item in the list of the MERGE_HEAD file.

Variables

_userRepo
string _userRepo;
Undocumented in source.

Meta