gitlib-3.1.0: API library for working with Git repositories

Safe HaskellNone

Git.Tree.Builder.Pure

Synopsis

Documentation

newPureTreeBuilder :: MonadGit r m => (Tree r -> m (EntryHashMap r)) -> (EntryHashMap r -> m (TreeOid r)) -> Maybe (Tree r) -> m (TreeBuilder r m)Source

Create a new, empty tree.

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