hit-0.3.0: Git operations

Portabilityunix
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellSafe-Infered

Data.Git.Types

Contents

Description

 

Synopsis

Type of types

data ObjectType Source

type of a git object.

Instances

Enum ObjectType

the enum instance is useful when marshalling to pack file.

Eq ObjectType 
Show ObjectType 

Main git types

data Tree Source

Represent a root tree with zero to many tree entries.

Constructors

Tree 

Fields

treeGetEnts :: [TreeEnt]
 

Instances

Eq Tree 
Show Tree 
Monoid Tree 
Objectable Tree 

data Commit Source

Represent a commit object.

Instances

Eq Commit 
Show Commit 
Objectable Commit 

data Blob Source

Represent a binary blob.

Constructors

Blob 

Instances

Eq Blob 
Show Blob 
Objectable Blob 

data Tag Source

Represent a signed tag.

Instances

Eq Tag 
Show Tag 
Objectable Tag 

Pack delta types

data DeltaOfs Source

Delta pointing to an offset.

Constructors

DeltaOfs Word64 Delta 

Instances

data DeltaRef Source

Delta pointing to a ref.

Constructors

DeltaRef Ref Delta 

Instances

Basic types part of other bigger types

type TreeEnt = (Int, ByteString, Ref)Source

represent one entry in the tree (permission,file or directory name,blob or tree ref) name should maybe a filepath, but not sure about the encoding.

type Name = (ByteString, ByteString, UTCTime, TimeZone)Source

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)