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

Mit.Git

Description

High-level git operations

Synopsis

Documentation

data GitCommitInfo Source #

Constructors

GitCommitInfo 

Fields

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_ :: [Text] -> Mit Env () Source #

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

Apply stash, return conflicts.

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

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

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

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

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

Get the conflicts with the given commitish.

Precondition: there is no merge in progress.

gitCreateStash :: Mit Env Text Source #

Precondition: there are changes to stash

gitDeleteChanges :: Mit Env () Source #

Delete all changes in the index and working tree.

gitExistUntrackedFiles :: Mit Env Bool Source #

Do any untracked files exist?

gitHead :: Mit Env Text Source #

Get the head commit.

gitIsMergeCommit :: Text -> Mit Env Bool Source #

Get whether a commit is a merge commit.

gitMaybeHead :: Mit Env (Maybe Text) Source #

Get the head commit, if it exists.

gitMergeInProgress :: Mit Env Bool Source #

Get whether a merge is in progress.

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

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

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

Get the head of a remote branch.