| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Security.Advisories.Git
Description
Helpers for deriving advisory metadata from a Git repo.
Synopsis
- data AdvisoryGitInfo = AdvisoryGitInfo {}
- data GitError
- explainGitError :: GitError -> String
- getAdvisoryGitInfo :: FilePath -> IO (Either GitError AdvisoryGitInfo)
- getRepoRoot :: FilePath -> IO (Either GitError FilePath)
- add :: FilePath -> [FilePath] -> IO (Either GitError ())
- commit :: FilePath -> String -> IO (Either GitError ())
Documentation
data AdvisoryGitInfo Source #
Constructors
| AdvisoryGitInfo | |
Constructors
| GitProcessError ExitCode String String | exit code, stdout and stderr |
| GitTimeParseError String | unable to parse this input as a datetime |
explainGitError :: GitError -> String Source #
getRepoRoot :: FilePath -> IO (Either GitError FilePath) Source #
Get top-level directory of the working tree.