git-object-0.0.1: Git object and its parser

System.Git

Description

Manipulating GitObject.

Synopsis

Documentation

gitPathToGitObject :: GitPath -> IO (Either SomeException GitObject)Source

Getting GitObject of 'GoBlob'/'GoTree' corresponding to GitPath.

type GitDir = FilePathSource

Type for the path to Git repository directories.

type GitPath = FilePathSource

Type for the absolute path from the project root.

findGitDir :: IO GitDirSource

Finding GitDir by tracking from the current directory to the root of the file system.

rootSha1 :: GitDir -> IO SHA1Source

Getting SHA1 of the project root.

rootCommitObj :: GitDir -> IO GitObjectSource

Getting GitObject of GoBlob corresponding to the project root.

gitPathToSha1 :: GitPath -> GitDir -> IO SHA1Source

Getting SHA1 corresponding to GitPath.

gitPathToObj :: GitPath -> GitDir -> IO GitObjectSource

Getting GitObject of 'GoBlob'/'GoTree' corresponding to GitPath.

sha1ToObjFile :: SHA1 -> GitDir -> FilePathSource

Getting FilePath to the Git object file according to SHA1.

sha1ToObj :: SHA1 -> GitDir -> IO GitObjectSource

Getting GitObject according to SHA1.