Method | Description | |
---|---|---|
Accept ( TreeVisitor tv, int flags ) : void | ||
AddEntry ( TreeEntry e ) : void |
Add the specified tree entry to this tree.
|
|
AddFile ( byte s, int offset ) : |
Adds a new or existing file with the specified name to this tree. Trees are added if necessary as the name may contain '/':s.
|
|
AddFile ( string name ) : |
Adds a new or existing file with the specified name to this tree. Trees are added if necessary as the name may contain '/':s.
|
|
AddTree ( byte s, int offset ) : |
Adds a new or existing Tree with the specified name to this tree. Trees are added if necessary as the name may contain '/':s.
|
|
AddTree ( string name ) : |
Adds a new or existing Tree with the specified name to this tree. Trees are added if necessary as the name may contain '/':s.
|
|
CompareNames ( byte a, byte b, int lastA, int lastB ) : int |
Compare two names represented as bytes. Since git treats names of trees and blobs differently we have one parameter that represents a '/' for trees. For other objects the value should be NUL. The names are compare by their positive byte value (0..255).
|
|
ExistsBlob ( string path ) : bool | ||
ExistsTree ( string path ) : bool | ||
FindBlobMember ( string blobName ) : TreeEntry | ||
ToString ( ) : string | ||
Tree ( |
Constructor for a new Tree
|
|
Tree ( |
Construct a Tree object with known content and hash value
|
|
Tree ( |
Construct a Tree with a known SHA-1 under another tree. Data is not yet specified and will have to be loaded on demand.
|
|
Tree ( |
Construct a new Tree under another Tree
|
|
Unload ( ) : void |
Forget the in-memory data for this tree.
|
|
findTreeMember ( string treeName ) : TreeEntry |
|
Method | Description | |
---|---|---|
BinarySearch ( TreeEntry entries, byte nameUTF8, int nameUTF8Last, int nameStart, int nameEnd ) : int | ||
CompareNames ( byte a, byte nameUTF8, int nameStart, int nameEnd, int lastA, int lastB ) : int |
Compare two names represented as bytes. Since git treats names of trees and blobs differently we have one parameter that represents a '/' for trees. For other objects the value should be NUL. The names are compare by their positive byte value (0..255).
|
|
EnsureLoaded ( ) : void | ||
Exists ( string s, byte slast ) : bool | ||
FindMember ( byte s, byte slast, int offset ) : TreeEntry | ||
FindMember ( string s, byte slast ) : TreeEntry | ||
InsertEntry ( int p, TreeEntry e ) : void | ||
ReadTree ( byte raw ) : void | ||
RemoveEntry ( TreeEntry e ) : void | ||
SubString ( byte s, int nameStart, int nameEnd ) : byte[] |
public Accept ( TreeVisitor tv, int flags ) : void | ||
tv | TreeVisitor | |
flags | int | |
return | void |
public AddFile ( byte s, int offset ) : |
||
s | byte | an array containing the name |
offset | int | when the name starts in the tree. /// |
return |
public AddFile ( string name ) : |
||
name | string | Name |
return |
public AddTree ( byte s, int offset ) : |
||
s | byte | an array containing the name |
offset | int | when the name starts in the tree. |
return |
public static CompareNames ( byte a, byte b, int lastA, int lastB ) : int | ||
a | byte | name |
b | byte | name |
lastA | int | '/' if a is a tree, else NULL. |
lastB | int | '/' if b is a tree, else NULL. |
return | int |
public ExistsTree ( string path ) : bool | ||
path | string | Path to the tree. |
return | bool |
public FindBlobMember ( string blobName ) : TreeEntry | ||
blobName | string | |
return | TreeEntry |
public Tree ( |
||
repo | The repository that owns the Tree. | |
return | System |
public Tree ( |
||
repo | ||
id | ||
raw | byte | |
return | System |
public Tree ( |
||
parent | ||
id | ||
nameUTF8 | byte | |
return | System |
public Tree ( |
||
parent | ||
nameUTF8 | byte | |
return | System |
public findTreeMember ( string treeName ) : TreeEntry | ||
treeName | string | Tree name |
return | TreeEntry |