License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | unix |
Safe Haskell | None |
Language | Haskell98 |
Manipulation of named references * reading packed-refs file * reading single headstagsremote file
Synopsis
- data RefSpecTy
- data RefContentTy hash
- = RefDirect (Ref hash)
- | RefLink RefSpecTy
- | RefContentUnknown ByteString
- newtype RefName = RefName {
- refNameRaw :: String
- readPackedRefs :: HashAlgorithm hash => LocalPath -> ([(RefName, Ref hash)] -> a) -> IO (PackedRefs a)
- data PackedRefs a = PackedRefs {
- packedRemotes :: a
- packedBranchs :: a
- packedTags :: a
- existsRefFile :: LocalPath -> RefSpecTy -> IO Bool
- writeRefFile :: LocalPath -> RefSpecTy -> RefContentTy hash -> IO ()
- readRefFile :: HashAlgorithm hash => LocalPath -> RefSpecTy -> IO (RefContentTy hash)
- looseHeadsList :: LocalPath -> IO [RefName]
- looseTagsList :: LocalPath -> IO [RefName]
- looseRemotesList :: LocalPath -> IO [RefName]
Documentation
Represent a named specifier.
RefHead | |
RefOrigHead | |
RefFetchHead | |
RefBranch RefName | |
RefTag RefName | |
RefRemote RefName | |
RefPatches String | |
RefStash | |
RefOther String |
data RefContentTy hash Source #
content of a ref file.
Instances
Eq (RefContentTy hash) Source # | |
Defined in Data.Git.Named (==) :: RefContentTy hash -> RefContentTy hash -> Bool # (/=) :: RefContentTy hash -> RefContentTy hash -> Bool # | |
Show (RefContentTy hash) Source # | |
Defined in Data.Git.Named 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 #
PackedRefs | |
|
manipulating loosed name references
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 #