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

Safe HaskellNone




createCommit :: Repository -> Signature -> 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 :: Commit -> Maybe Text -> IO CommitSource

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