Safe Haskell | None |
---|
Data.Git.Commit
- data Commit = Commit {}
- newCommitBase :: Commit -> Base Commit
- createCommit :: Repository -> Commit
- lookupCommit :: Oid -> Repository -> IO (Maybe Commit)
- writeCommit :: Maybe Text -> Commit -> IO Commit
- doWriteCommit :: Maybe Text -> Commit -> IO (Commit, COid)
- getCommitParents :: Commit -> IO [Commit]
- getCommitParentPtrs :: Commit -> IO [ForeignPtr C'git_commit]
- modifyCommitTree :: FilePath -> (Maybe TreeEntry -> Either a (Maybe TreeEntry)) -> Bool -> Commit -> IO (Either a Commit)
- removeFromCommitTree :: FilePath -> Commit -> IO Commit
- doUpdateCommit :: [Text] -> TreeEntry -> Commit -> IO Commit
- updateCommit :: FilePath -> TreeEntry -> Commit -> IO Commit
Documentation
Constructors
Commit | |
Fields
|
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