git-0.2.0: Git operations in haskell

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

Data.Git.Named

Contents

Description

Manipulation of named references * reading packed-refs file * reading single headstagsremote file

Synopsis

Documentation

data RefContentTy hash Source #

content of a ref file.

Instances

Eq (RefContentTy hash) Source # 

Methods

(==) :: RefContentTy hash -> RefContentTy hash -> Bool #

(/=) :: RefContentTy hash -> RefContentTy hash -> Bool #

Show (RefContentTy hash) Source # 

Methods

showsPrec :: Int -> RefContentTy hash -> ShowS #

show :: RefContentTy hash -> String #

showList :: [RefContentTy hash] -> ShowS #

readPackedRefs :: HashAlgorithm hash => LocalPath -> ([(RefName, Ref hash)] -> a) -> IO (PackedRefs a) Source #

data PackedRefs a Source #

Constructors

PackedRefs 

Fields

manipulating loosed name references

existsRefFile :: LocalPath -> RefSpecTy -> IO Bool Source #

writeRefFile :: LocalPath -> RefSpecTy -> RefContentTy hash -> IO () Source #

readRefFile :: HashAlgorithm hash => LocalPath -> RefSpecTy -> IO (RefContentTy hash) Source #

listings looses name references

looseHeadsList :: LocalPath -> IO [RefName] Source #

looseTagsList :: LocalPath -> IO [RefName] Source #

looseRemotesList :: LocalPath -> IO [RefName] Source #