Table of Contents

Class Trees

Namespace
Fenrir.Git
Assembly
Fenrir.Git.dll

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 PackIndex

Git pack index to search the objects in.

path LocalPath

Path to a repository's .git folder.

hash Sha1Hash

Hash of the tree object.

Returns

Task<TreeAtom[]>

A parsed tree body object.

WriteTreeBody(TreeAtom[], Stream)

Writes a tree body to a stream.

public static void WriteTreeBody(TreeAtom[] tree, Stream stream)

Parameters

tree TreeAtom[]
stream Stream