libgit-0.3.0: Simple Git Wrapper

Lib.Git.Type

Synopsis

Documentation

runGit :: Config -> GitCtx t -> IO tSource

Run a git context from a config and returns the result

gitExec :: String -> [String] -> [(String, String)] -> GitCtx (Either GitFailure String)Source

internal function to execute a git command

gitError :: GitFailure -> String -> bSource

internal function to call on failure to make a friendly error message

data Object Source

Tagged ID of all possible types

Instances

data Config Source

Represent a repository

Constructors

Config 

Fields

configCwd :: FilePath

Path to the repository .git

configGitPath :: Maybe FilePath

Optional path to the git executable (otherwise resolved from $PATH)

data Commitent Source

Commit entity representation

Instances

data Person Source

Commit object author/commiter representation

Constructors

Person 

Instances

type ID = StringSource

any ID (git SHA1 string)

type CommitID = IDSource

a commit ID

type BlobID = IDSource

a blob ID

type TreeID = IDSource

a tree ID

type TagID = IDSource

a tag ID