C# Class dotGit.Objects.Tree

Represents a tree in a git repository. Has Children of type TreeNode which can either be a blog or a tree.
Inheritance: TreeNode
Show file Open project: schacon/dotgit Class Usage Examples

Public Methods

Method Description
Deserialize ( GitObjectReader input ) : void

Loads the tree from the GitObjectReader. The child objects themselves will be lazy loaded

Serialize ( ) : byte[]

Private Methods

Method Description
LoadChildren ( ) : void

Gets called be the Children getter for lazy loading

Tree ( Repository repo ) : System
Tree ( Repository repo, string sha ) : System

Method Details

Deserialize() public method

Loads the tree from the GitObjectReader. The child objects themselves will be lazy loaded
public Deserialize ( GitObjectReader input ) : void
input GitObjectReader A reader with inflated tree contents
return void

Serialize() public method

public Serialize ( ) : byte[]
return byte[]