git.repository

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(in char[] startPath, string[] ceilingDirs = null, AcrossFS acrossFS = AcrossFS.yes)

Discover a git repository and return its path if found.

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

TODO: Functions to wrap later:

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

Create a new Git repository in the given folder.

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.

Meta