simple-cmd-0.2.7: Simple String-based process commands
Safe HaskellSafe-Inferred
LanguageHaskell2010

SimpleCmd.Git

Description

Some wrappers for git commands.

Synopsis

Documentation

git Source #

Arguments

:: String

git command

-> [String]

arguments

-> IO String

output

git c args runs git command and return output

git_ :: String -> [String] -> IO () Source #

git_ c args run git command with output to stdout and stderr

gitBool Source #

Arguments

:: String

git command

-> [String]

arguments

-> IO Bool

result

gitBool c args runs git command and return result

Since: 0.2.2

gitBranch :: IO String Source #

gitBranch returns the git branch of the current directory

gitDiffQuiet :: [String] -> IO Bool Source #

gitDiffQuiet checks if unchanged

Since: 0.1.3

grepGitConfig :: String -> IO Bool Source #

grepGitConfig pat greps ".git/config" for extended regexp

Since: 0.1.1

isGitDir :: FilePath -> IO Bool Source #

isGitDir dir checks if directory has a .git/ subdir

rwGitDir :: IO Bool Source #

rwGitDir checks if a git repo is under ssh