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

Safe HaskellSafe-Inferred

SimpleCmd.Git

Description

Some wrappers for git commands.

Synopsis

Documentation

gitSource

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

gitBranch :: IO StringSource

gitBranch returns the git branch of the current directory

isGitDir :: FilePath -> IO BoolSource

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

rwGitDir :: IO BoolSource

rwGitDir checks if a git repo is under ssh