| License | BSD-style |
|---|---|
| Maintainer | Vincent Hanquez <vincent@snarc.org> |
| Stability | experimental |
| Portability | unix |
| Safe Haskell | None |
| Language | Haskell98 |
Data.Git.Types
Contents
Description
- data ObjectType
- data Tree = Tree {
- treeGetEnts :: [TreeEnt]
- data Commit = Commit {}
- data CommitExtra = CommitExtra {}
- data Blob = Blob {}
- data Tag = Tag {
- tagRef :: Ref
- tagObjectType :: ObjectType
- tagBlob :: ByteString
- tagName :: Person
- tagS :: ByteString
- data Person = Person {}
- data EntName
- entName :: ByteString -> EntName
- type EntPath = [EntName]
- entPathAppend :: EntPath -> EntName -> EntPath
- newtype ModePerm = ModePerm Word32
- data FilePermissions = FilePermissions {
- getOwnerPerm :: !Perm
- getGroupPerm :: !Perm
- getOtherPerm :: !Perm
- data ObjectFileType
- getPermission :: ModePerm -> FilePermissions
- getFiletype :: ModePerm -> ObjectFileType
- data GitTime = GitTime {}
- gitTime :: Integer -> Int -> GitTime
- gitTimeToLocal :: GitTime -> LocalTime Elapsed
- data DeltaOfs = DeltaOfs Word64 Delta
- data DeltaRef = DeltaRef Ref Delta
- type TreeEnt = (ModePerm, EntName, Ref)
Type of types
data ObjectType #
type of a git object.
Constructors
| TypeTree | |
| TypeBlob | |
| TypeCommit | |
| TypeTag | |
| TypeDeltaOff | |
| TypeDeltaRef |
Instances
| Enum ObjectType # | the enum instance is useful when marshalling to pack file. |
| Eq ObjectType # | |
| Data ObjectType # | |
| Show ObjectType # | |
Main git types
Represent a root tree with zero to many tree entries.
Constructors
| Tree | |
Fields
| |
Represent a commit object.
Constructors
| Commit | |
Fields
| |
Represent a binary blob.
Constructors
| Blob | |
Fields | |
Represent a signed tag.
Constructors
| Tag | |
Fields
| |
an author or committer line has the format: name email time timezone FIXME: should be a string, but I don't know if the data is stored consistantly in one encoding (UTF8)
Constructors
| Person | |
Fields | |
Entity name
entName :: ByteString -> EntName #
entPathAppend :: EntPath -> EntName -> EntPath #
modeperm type
data FilePermissions #
traditional unix permission for owner, group and permissions
Constructors
| FilePermissions | |
Fields
| |
Instances
getFiletype :: ModePerm -> ObjectFileType #
time type
Git time is number of seconds since unix epoch in the UTC zone with the current timezone associated
Constructors
| GitTime | |
Fields | |
gitTimeToLocal :: GitTime -> LocalTime Elapsed #
Pack delta types
Delta pointing to an offset.
Delta pointing to a ref.