Hish-0.1.2.3

Safe HaskellSafe
LanguageHaskell2010

Hish.VCS

Contents

Synopsis

Version Control System

class VCS a where Source

Every version control system provides functions as follows

Methods

branchCmd :: a -> String Source

get command for revealing branch

branchArgs :: a -> [String] Source

get arguments for revealing branch

statusCmd :: a -> String Source

get command for revealing status

statusArgs :: a -> [String] Source

get arguments for revealing status

repoName :: a -> String Source

get name of repository folder

getAhead :: a -> String -> Maybe String Source

tracking ahead

getBehind :: a -> String -> Maybe String Source

tracking behind

getCleanliness :: a -> String -> Maybe String Source

determining the cleanliness of working-tree * ' ' - clean * ? - clean (exists untracked file) * '#' - dirty (non-empty index; ready for commit..) * * - dirty (empty index)

getStatus Source

Arguments

:: a 
-> IO (Maybe String, Maybe String, Maybe String)

(cleanliness, ahead, behind) | get current name of git-branch

get current status

getBranch Source

Arguments

:: a 
-> IO (Maybe String)

current branch name | using status to verifying the existence of repository

isRepo :: a -> IO Bool Source

installed :: a -> IO Bool Source

is this vcs installed (= executable)