Portability | unix |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
- data Git
- type HTree = [(Int, ByteString, HTreeEnt)]
- data HTreeEnt
- gitRepoPath :: Git -> FilePath
- openRepo :: FilePath -> IO Git
- closeRepo :: Git -> IO ()
- withRepo :: FilePath -> (Git -> IO c) -> IO c
- findRepo :: IO FilePath
- findReference :: Git -> Ref -> IO ObjectLocation
- findReferencesWithPrefix :: Git -> String -> IO [Ref]
- findObjectRaw :: Git -> Ref -> Bool -> IO (Maybe ObjectInfo)
- findObjectRawAt :: Git -> ObjectLocation -> Bool -> IO (Maybe ObjectInfo)
- findObject :: Git -> Ref -> Bool -> IO (Maybe Object)
- findObjectAt :: Git -> ObjectLocation -> Bool -> IO (Maybe Object)
- buildHTree :: Git -> Object -> IO HTree
- resolvePath :: Git -> Ref -> [ByteString] -> IO (Maybe Ref)
- resolveTreeish :: Git -> Ref -> IO (Maybe Object)
- resolveRevision :: Git -> Revision -> IO (Maybe Ref)
- initRepo :: FilePath -> IO ()
- isRepo :: FilePath -> IO Bool
Documentation
represent an git repo, with possibly already opened filereaders for indexes and packs
type HTree = [(Int, ByteString, HTreeEnt)]Source
hierarchy tree, either a reference to a blob (file) or a tree (directory).
gitRepoPath :: Git -> FilePathSource
findReference :: Git -> Ref -> IO ObjectLocationSource
execute a function f with a git context.
findReferencesWithPrefix :: Git -> String -> IO [Ref]Source
get all the references that start by a specific prefix
findObjectRaw :: Git -> Ref -> Bool -> IO (Maybe ObjectInfo)Source
get an object from repository
findObjectRawAt :: Git -> ObjectLocation -> Bool -> IO (Maybe ObjectInfo)Source
get an object from repository
findObject :: Git -> Ref -> Bool -> IO (Maybe Object)Source
get an object from repository using a ref.
findObjectAt :: Git -> ObjectLocation -> Bool -> IO (Maybe Object)Source
get an object from repository using a location to reference it.
resolvePath :: Git -> Ref -> [ByteString] -> IO (Maybe Ref)Source
resolve the ref (tree or blob) related to a path at a specific commit ref
resolveTreeish :: Git -> Ref -> IO (Maybe Object)Source
returns a tree from a ref that might be either a commit, a tree or a tag.