hit-0.5.4: Git operations in haskell

Portabilityunix
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellNone

Data.Git.Storage.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 
Data ObjectType 
Show ObjectType 
Typeable 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 in packs.

Instances

data ObjectInfo Source

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

parsing function

treeParse :: Parser ByteString TreeSource

parse a tree content

commitParse :: Parser ByteString CommitSource

parse a commit content

tagParse :: Parser ByteString TagSource

parse a tag content

blobParse :: Parser ByteString BlobSource

parse a blob content

writing function