git-0.3.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 # 
Instance details

Defined in Data.Git.Named

Methods

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

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

Show (RefContentTy hash) Source # 
Instance details

Defined in Data.Git.Named

Methods

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

show :: RefContentTy hash -> String #

showList :: [RefContentTy hash] -> ShowS #

newtype RefName Source #

Constructors

RefName 

Fields

Instances
Eq RefName Source # 
Instance details

Defined in Data.Git.Named

Methods

(==) :: RefName -> RefName -> Bool #

(/=) :: RefName -> RefName -> Bool #

Ord RefName Source # 
Instance details

Defined in Data.Git.Named

Show RefName Source # 
Instance details

Defined in Data.Git.Named

IsString RefName Source # 
Instance details

Defined in Data.Git.Named

Methods

fromString :: String -> RefName #

Resolvable RefName Source # 
Instance details

Defined in Data.Git.Monad

Methods

resolve :: GitMonad m => RefName -> m (Maybe (Ref SHA1)) Source #

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 #