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
- 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.
data RefContentTy hash Source #
content of a ref file.
Eq (RefContentTy hash) Source # | |
Show (RefContentTy hash) Source # | |
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 #