Class Trees
Functions to work with Git tree objects.
[CompilationMapping(SourceConstructFlags.Module)]
public static class Trees
- Inheritance
-
Trees
- Inherited Members
Methods
ReadTreeBody(PackIndex, LocalPath, Sha1Hash)
Reads a tree object information.
public static Task<TreeAtom[]> ReadTreeBody(PackIndex index, LocalPath path, Sha1Hash hash)
Parameters
index
PackIndexGit pack index to search the objects in.
path
LocalPathPath to a repository's
.git
folder.hash
Sha1HashHash of the tree object.
Returns
WriteTreeBody(TreeAtom[], Stream)
Writes a tree body to a stream.
public static void WriteTreeBody(TreeAtom[] tree, Stream stream)