Hish-0.1.2.1

Safe HaskellNone
LanguageHaskell2010

Hish.VCS

Contents

Synopsis

Version Control System

class VCS a where Source

Every version control system provides functions as follows

Methods

vcsAhead :: a -> String -> Maybe String Source

tracking ahead

vcsBehind :: a -> String -> Maybe String Source

tracking behind

vcsCleanliness :: 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)

vcsCurrentBranch :: a -> String -> Maybe String Source

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

installed :: a -> IO Bool Source

is this vcs installed (= executable)

Git

data Git Source

Unit type for presenting Git.

Constructors

Git 

Instances

Darcs

data Darcs Source

Unit type for presenting Darcs. UN-IMPLEMENTED!

Constructors

Darcs