Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ObjectType
- data Object
- newtype Blob = Blob {}
- newtype Tree = Tree {}
- data Commit = Commit {
- commitTree :: Sha1
- commitParents :: [Sha1]
- commitAuthor :: (Contact, Date)
- commitCommitter :: (Contact, Date)
- commitMessage :: ByteString
- data Tag = Tag {
- tagObject :: Sha1
- tagType :: ObjectType
- tagName :: LfFree
- tagTagger :: (Contact, Date)
- tagMessage :: ByteString
- data TreeEntry = Entry {}
- asBlob :: Object -> Maybe Blob
- asTree :: Object -> Maybe Tree
- asCommit :: Object -> Maybe Commit
- asTag :: Object -> Maybe Tag
- buildObject :: Object -> Builder
- buildLooseObject :: Object -> Builder
- emptyTree :: Tree
- emptyTreeSha :: Sha1
Documentation
data ObjectType Source #
Objects can be blobs, trees, commits, or tags.
Instances
Eq ObjectType Source # | |
Defined in Data.Git.Internal.Object (==) :: ObjectType -> ObjectType -> Bool # (/=) :: ObjectType -> ObjectType -> Bool # | |
Ord ObjectType Source # | |
Defined in Data.Git.Internal.Object compare :: ObjectType -> ObjectType -> Ordering # (<) :: ObjectType -> ObjectType -> Bool # (<=) :: ObjectType -> ObjectType -> Bool # (>) :: ObjectType -> ObjectType -> Bool # (>=) :: ObjectType -> ObjectType -> Bool # max :: ObjectType -> ObjectType -> ObjectType # min :: ObjectType -> ObjectType -> ObjectType # | |
Show ObjectType Source # | |
Defined in Data.Git.Internal.Object showsPrec :: Int -> ObjectType -> ShowS # show :: ObjectType -> String # showList :: [ObjectType] -> ShowS # |
A blob is just some data.
A Commit
must point to the Sha1
of a Tree
, and can have 0 or more parents (each of which
are Commit
s). A commit with 0 parents is the initial commit in a repo, a commit with 1
parent is a normal commit, and a commit with more than 1 parent is a merge commit.
Commit | |
|
Tag | |
|