Repository

Undocumented in source.

Constructors

this
this(string path)
Undocumented in source.

Members

Aliases

ObjectMultiWriter
alias ObjectMultiWriter = RefCounted!ObjectMultiWriterImpl
Undocumented in source.
ObjectReader
alias ObjectReader = RefCounted!ObjectReaderImpl
Undocumented in source.
ObjectWriter
alias ObjectWriter = RefCounted!ObjectWriterImpl
Undocumented in source.
RefWriter
alias RefWriter = RefCounted!RefWriterImpl
Undocumented in source.

Functions

check
bool check(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
createObjectReader
ObjectReader createObjectReader()

Spawn a cat-file process which can read git objects by demand.

createObjectWriter
ObjectWriter createObjectWriter(string type)
ObjectMultiWriter createObjectWriter()

Spawn a hash-object process which can hash and write git objects on the fly.

createRefWriter
RefWriter createRefWriter()

Spawn a update-ref process which can update git refs on the fly.

exportCommit
void exportCommit(string commit, string path, ObjectReader reader, bool delegate(string) pathFilter)

Extract a commit's tree to a given directory

exportTree
void exportTree(Hash treeHash, string path, ObjectReader reader, bool delegate(string) pathFilter)

Extract a tree to a given directory

getHistory
History getHistory(string[] extraRefs)
Undocumented in source. Be warned that the author may not have intended to support it.
getObjects
GitObject[] getObjects(Hash[] hashes)

Run a batch cat-file query.

importTree
Hash importTree(string path, ObjectMultiWriter writer, bool delegate(string) pathFilter)

Import a directory tree into the object store, and return the new tree object's hash.

pipe
auto pipe(string[] args, Redirect redirect)
Undocumented in source. Be warned that the author may not have intended to support it.
pipe
auto pipe(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
query
string query(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
run
void run(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
writeObjects
void writeObjects(GitObject[] objects)

Batch-write the given objects to the database. The hashes are saved to the "hash" fields of the passed objects.

Static variables

globalOptions
string[] globalOptions;
Undocumented in source.

Structs

ObjectMultiWriterImpl
struct ObjectMultiWriterImpl
Undocumented in source.
ObjectReaderImpl
struct ObjectReaderImpl
Undocumented in source.
ObjectWriterImpl
struct ObjectWriterImpl
Undocumented in source.
RefWriterImpl
struct RefWriterImpl
Undocumented in source.

Variables

commandPrefix
string[] commandPrefix;
Undocumented in source.
environment
string[string] environment;
Undocumented in source.
gitDir
string gitDir;
Undocumented in source.
path
string path;
Undocumented in source.

Meta