git-0.1: Git operations in haskell

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunix
Safe HaskellNone
LanguageHaskell98

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 Source

the enum instance is useful when marshalling to pack file.

Eq ObjectType Source 
Data ObjectType Source 
Show ObjectType Source 

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.

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 Tree Source

parse a tree content

commitParse :: Parser Commit Source

parse a commit content

tagParse :: Parser Tag Source

parse a tag content

blobParse :: Parser Blob Source

parse a blob content

writing function