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
- newtype RefName = RefName {
- refNameRaw :: String
- readPackedRefs :: FilePath -> ([(RefName, Ref)] -> a) -> IO (PackedRefs a)
- data PackedRefs a = PackedRefs {
- packedRemotes :: a
- packedBranchs :: a
- packedTags :: a
- existsRefFile :: FilePath -> RefSpecTy -> IO Bool
- writeRefFile :: FilePath -> RefSpecTy -> RefContentTy -> IO ()
- readRefFile :: FilePath -> RefSpecTy -> IO RefContentTy
- looseHeadsList :: FilePath -> IO [RefName]
- looseTagsList :: FilePath -> IO [RefName]
- looseRemotesList :: FilePath -> IO [RefName]
Documentation
Represent a named specifier.
data RefContentTy Source
content of a ref file.
readPackedRefs :: FilePath -> ([(RefName, Ref)] -> a) -> IO (PackedRefs a) Source
data PackedRefs a Source
PackedRefs | |
|
manipulating loosed name references
writeRefFile :: FilePath -> RefSpecTy -> RefContentTy -> IO () Source
readRefFile :: FilePath -> RefSpecTy -> IO RefContentTy Source
listings looses name references
looseHeadsList :: FilePath -> IO [RefName] Source
looseTagsList :: FilePath -> IO [RefName] Source
looseRemotesList :: FilePath -> IO [RefName] Source