| License | BSD-style |
|---|---|
| Maintainer | Vincent Hanquez <[email protected]> |
| 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
- 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.
Constructors
| RefDirect (Ref hash) | |
| RefLink RefSpecTy | |
| RefContentUnknown ByteString |
Instances
| Eq (RefContentTy hash) Source # | |
| Show (RefContentTy hash) Source # | |
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 #