gitlib-0.6.5: Higher-level types for working with hlibgit2

Safe HaskellNone

Data.Git.Tree

Synopsis

Documentation

data Tree Source

Constructors

Tree 

Instances

createTree :: Repository -> TreeSource

Create a new, empty tree.

Since empty trees cannot exist in Git, attempting to write out an empty tree is a no-op.

writeTree :: Tree -> IO TreeSource

Write out a tree to its repository. If it has already been written, nothing will happen.