Safe Haskell | None |
---|
- data Commit = Commit {}
- newCommitBase :: Commit -> Base Commit
- createCommit :: Repository -> Commit
- lookupCommit :: Oid -> Repository -> IO (Maybe Commit)
- writeCommit :: Maybe Text -> Commit -> IO Commit
- getCommitParents :: Commit -> IO [Commit]
- modifyCommitTree :: FilePath -> (Maybe TreeEntry -> Either a (Maybe TreeEntry)) -> Bool -> Commit -> IO (Either a Commit)
- removeFromCommitTree :: FilePath -> Commit -> IO Commit
- updateCommit :: FilePath -> TreeEntry -> Commit -> IO Commit
- commitHistoryFirstParent :: Commit -> IO [Commit]
- commitEntry :: FilePath -> Commit -> IO (Maybe TreeEntry)
- commitEntryHistory :: FilePath -> Commit -> IO [(Oid, TreeEntry)]
Documentation
Commit | |
|
newCommitBase :: Commit -> Base CommitSource
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.
lookupCommit :: Oid -> Repository -> IO (Maybe Commit)Source
writeCommit :: Maybe Text -> Commit -> IO CommitSource
Write out a commit to its repository. If it has already been written, nothing will happen.
getCommitParents :: Commit -> IO [Commit]Source
modifyCommitTree :: FilePath -> (Maybe TreeEntry -> Either a (Maybe TreeEntry)) -> Bool -> Commit -> IO (Either a Commit)Source
commitHistoryFirstParent :: Commit -> IO [Commit]Source