mit-3qvpPyAi6mH-10: A git wrapper with a streamlined UX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Mit.Git

Description

High-level git operations

Synopsis

Documentation

data GitCommitInfo Source #

Instances

Instances details
Show GitCommitInfo Source # 
Instance details

Defined in Mit.Git

data GitConflict Source #

Instances

Instances details
Show GitConflict Source # 
Instance details

Defined in Mit.Git

Eq GitConflict Source # 
Instance details

Defined in Mit.Git

data GitVersion Source #

Constructors

GitVersion Int Int Int 

Instances

Instances details
Eq GitVersion Source # 
Instance details

Defined in Mit.Git

Ord GitVersion Source # 
Instance details

Defined in Mit.Git

git :: ProcessOutput a => [Text] -> Mit Env x a Source #

git_ :: [Text] -> Mit Env x () Source #

gitApplyStash :: Text -> Mit Env x [GitConflict] Source #

Apply stash, return conflicts.

gitBranch :: Text -> Mit Env x () Source #

Create a branch. FIXME inline this

gitBranchHead :: Text -> Mit Env x (Maybe Text) Source #

Get the head of a local branch (refsheads...).

gitBranchWorktreeDir :: Text -> Mit Env x (Maybe Text) Source #

Get the directory a branch's worktree is checked out in, if it exists.

gitConflictsWith :: Text -> Mit Env x [GitConflict] Source #

Get the conflicts with the given commitish.

Precondition: there is no merge in progress.

gitCreateStash :: Mit Env x Text Source #

Precondition: there are changes to stash

gitExistUntrackedFiles :: Mit Env x Bool Source #

Do any untracked files exist?

gitHead :: Mit Env x Text Source #

Get the head commit.

gitMaybeHead :: Mit Env x (Maybe Text) Source #

Get the head commit, if it exists.

gitRemoteBranchExists :: Text -> Text -> Mit Env x Bool Source #

Does the given remote branch (refsremotes...) exist?

gitRemoteBranchHead :: Text -> Text -> Mit Env x (Maybe Text) Source #

Get the head of a remote branch.

gitRevParseShowToplevel :: Mit Env x Text Source #

The root of this git worktree.

gitVersion :: (forall void. [Stanza] -> Mit Env x void) -> Mit Env x GitVersion Source #