hsec-tools-0.1.0.0: Tools for working with the Haskell security advisory database
Safe HaskellSafe-Inferred
LanguageHaskell2010

Security.Advisories.Git

Description

Helpers for deriving advisory metadata from a Git repo.

Synopsis

Documentation

data GitError Source #

Constructors

GitProcessError ExitCode String String

exit code, stdout and stderr

GitTimeParseError String

unable to parse this input as a datetime

Instances

Instances details
Show GitError Source # 
Instance details

Defined in Security.Advisories.Git

getRepoRoot :: FilePath -> IO (Either GitError FilePath) Source #

Get top-level directory of the working tree.

add Source #

Arguments

:: FilePath

path to working tree

-> [FilePath]

files to update in index

-> IO (Either GitError ()) 

Add changes to index

commit Source #

Arguments

:: FilePath

path to working tree

-> String

commit message

-> IO (Either GitError ()) 

Commit changes to repo.