Documentation
¶
Index ¶
- func ModifyCommit(st storer.EncodedObjectStorer, c *object.Commit, newContent map[string]string, ...) (id plumbing.Hash, err error)
- func PatchTree(eos storer.EncodedObjectStorer, t *object.Tree, changes []object.TreeEntry) (id plumbing.Hash, err error)
- func SaveBlob(st storer.EncodedObjectStorer, data []byte) (id plumbing.Hash, err error)
- func SaveCommit(st storer.EncodedObjectStorer, c *object.Commit) (id plumbing.Hash, err error)
- func SaveTree(st storer.EncodedObjectStorer, entries []object.TreeEntry) (id plumbing.Hash, err error)
- func ServeGit(root string, l net.Listener)
- func SortTreeEntries(es []object.TreeEntry)
- func Subject(c *object.Commit) string
- func TestMapToEntries(st storer.EncodedObjectStorer, in map[string]string) ([]object.TreeEntry, error)
- type TestRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModifyCommit ¶
func PatchTree ¶
func PatchTree(eos storer.EncodedObjectStorer, t *object.Tree, changes []object.TreeEntry) (id plumbing.Hash, err error)
PatchTree constructs a new tree by applying changes to it. In changes, the ZeroHash signifies deletion of the path.
func SaveCommit ¶
func SortTreeEntries ¶
func TestMapToEntries ¶
func TestMapToEntries(st storer.EncodedObjectStorer, in map[string]string) ([]object.TreeEntry, error)
TestMapToEntries provides input to PatchTree. keys are filenames, with suffixes: * '!' = delete * '*' = executable * '@' = symlink * '#' = submodule.
Types ¶
Click to show internal directories.
Click to hide internal directories.