| License | BSD-style |
|---|---|
| Maintainer | Vincent Hanquez <vincent@snarc.org> |
| Stability | experimental |
| Portability | unix |
| Safe Haskell | None |
| Language | Haskell98 |
Data.Git.Named
Description
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.
Constructors
| RefHead | |
| RefOrigHead | |
| RefFetchHead | |
| RefBranch RefName | |
| RefTag RefName | |
| RefRemote RefName | |
| RefPatches String | |
| RefStash | |
| RefOther String |
Instances
| Eq RefSpecTy Source # | |
| Ord RefSpecTy Source # | |
| Show RefSpecTy Source # | |
data RefContentTy hash Source #
content of a ref file.
Constructors
| RefDirect (Ref hash) | |
| RefLink RefSpecTy | |
| RefContentUnknown ByteString |
Instances
| Eq (RefContentTy hash) Source # | |
Defined in Data.Git.Named Methods (==) :: RefContentTy hash -> RefContentTy hash -> Bool # (/=) :: RefContentTy hash -> RefContentTy hash -> Bool # | |
| Show (RefContentTy hash) Source # | |
Defined in Data.Git.Named Methods showsPrec :: Int -> RefContentTy hash -> ShowS # show :: RefContentTy hash -> String # showList :: [RefContentTy hash] -> ShowS # | |
Constructors
| RefName | |
Fields
| |
readPackedRefs :: HashAlgorithm hash => LocalPath -> ([(RefName, Ref hash)] -> a) -> IO (PackedRefs a) Source #
data PackedRefs a Source #
Constructors
| PackedRefs | |
Fields
| |
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 #