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