hit-0.2.1: Git operations

Portabilityunix
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>

Data.Git.Object

Contents

Description

 

Synopsis

Documentation

data ObjectLocation Source

location of an object in the database

Constructors

NotFound 
Loose Ref 
Packed Ref Word64 

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 

data ObjectPtr Source

Delta objects points to some others objects in the database either as offset in the pack or as a direct reference.

Constructors

PtrRef Ref 
PtrOfs Word64 

data Object Source

describe a git object, that could of 6 differents types: tree, blob, commit, tag and deltas (offset or ref). the deltas one are only available through packs.

Constructors

forall a . Objectable a => Object a 

data Tree Source

Constructors

Tree 

Fields

treeGetEnts :: [TreeEnt]
 

Instances

Eq Tree 
Show Tree 
Objectable Tree 

data Commit Source

Constructors

Commit 

Instances

Eq Commit 
Show Commit 
Objectable Commit 

data Blob Source

Constructors

Blob 

Instances

Eq Blob 
Show Blob 
Objectable Blob 

data Tag Source

Constructors

Tag 

Instances

Eq Tag 
Show Tag 
Objectable Tag 

data DeltaOfs Source

Constructors

DeltaOfs Word64 Delta 

Instances

data DeltaRef Source

Constructors

DeltaRef Ref Delta 

Instances

data ObjectInfo Source

Raw objects infos have an header (type, size, ptr), the data and a pointers chains to parents for resolved objects.

objectWrap :: Objectable a => a -> ObjectSource

parsing function

writing function

objectWriteHeader :: ObjectType -> Word64 -> ByteStringSource

parse a tree content

parse a blob content

parse a commit content

parse a tag content