libgit-0.3.1: Simple Git Wrapper

Safe HaskellNone
LanguageHaskell98

Lib.Git.Type

Synopsis

Documentation

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

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 -> b Source

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 = String Source

any ID (git SHA1 string)

type CommitID = ID Source

a commit ID

type BlobID = ID Source

a blob ID

type TreeID = ID Source

a tree ID

type TagID = ID Source

a tag ID