Portability | unix |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | None |
Manipulation of named references * reading packed-refs file * reading single headstagsremote file
- data RefSpecTy
- = RefHead
- | RefOrigHead
- | RefFetchHead
- | RefBranch RefName
- | RefTag RefName
- | RefRemote RefName
- | RefPatches String
- | RefStash
- | RefOther String
- 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 RefContentTySource
listings looses name references
looseHeadsList :: FilePath -> IO [RefName]Source
looseTagsList :: FilePath -> IO [RefName]Source
looseRemotesList :: FilePath -> IO [RefName]Source