simple-cmd-0.1.2: Simple String-based process commands

Safe HaskellSafe
LanguageHaskell2010

SimpleCmd.Git

Synopsis

Documentation

git #

Arguments

:: String

git command

-> [String]

arguments

-> IO String

output

'git c args' runs git command and return output

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

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

gitBranch :: IO String #

gitBranch returns the git branch of the current directory

grepGitConfig :: String -> IO Bool #

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

Since: simple-cmd-0.1.1

isGitDir :: FilePath -> IO Bool #

'isGitDir dir' checks if directory has a .git/ subdir

rwGitDir :: IO Bool #

rwGitDir checks if a git repo is under ssh