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

Safe HaskellNone

Data.Git.Commit

Synopsis

Documentation

createCommit :: Repository -> CommitSource

Create a new, empty commit.

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

writeCommit :: Maybe Text -> Commit -> IO CommitSource

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