mit-3qvpPyAi6mH-3: A git wrapper with a streamlined UX
Safe HaskellNone
LanguageHaskell2010

Mit.Git

Synopsis

Documentation

data GitCommitInfo Source #

Constructors

GitCommitInfo 

Fields

Instances

Instances details
Show GitCommitInfo Source # 
Instance details

Defined in Mit.Git

Text ~ aplg => HasField "author" GitCommitInfo aplg 
Instance details

Defined in Mit.Git

Methods

hasField :: GitCommitInfo -> (aplg -> GitCommitInfo, aplg) #

Text ~ aplg => HasField "date" GitCommitInfo aplg 
Instance details

Defined in Mit.Git

Methods

hasField :: GitCommitInfo -> (aplg -> GitCommitInfo, aplg) #

Text ~ aplg => HasField "hash" GitCommitInfo aplg 
Instance details

Defined in Mit.Git

Methods

hasField :: GitCommitInfo -> (aplg -> GitCommitInfo, aplg) #

Text ~ aplg => HasField "shorthash" GitCommitInfo aplg 
Instance details

Defined in Mit.Git

Methods

hasField :: GitCommitInfo -> (aplg -> GitCommitInfo, aplg) #

Text ~ aplg => HasField "subject" GitCommitInfo aplg 
Instance details

Defined in Mit.Git

Methods

hasField :: GitCommitInfo -> (aplg -> GitCommitInfo, aplg) #

data GitConflict Source #

Instances

Instances details
Eq GitConflict Source # 
Instance details

Defined in Mit.Git

Show GitConflict Source # 
Instance details

Defined in Mit.Git

data GitConflictXY Source #

Constructors

AA 
AU 
DD 
DU 
UA 
UD 
UU 

Instances

Instances details
Eq GitConflictXY Source # 
Instance details

Defined in Mit.Git

Show GitConflictXY 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

gitApplyStash :: Text -> IO [GitConflict] Source #

Apply stash, return conflicts.

gitBranch :: Text -> IO () Source #

Create a branch.

gitBranchExists :: Text -> IO Bool Source #

Does the given local branch (refsheads...) exist?

gitBranchHead :: Text -> IO (Maybe Text) Source #

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

gitBranchWorktreeDir :: Text -> IO (Maybe Text) Source #

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

gitCurrentBranch :: IO Text Source #

Get the current branch.

gitExistUntrackedFiles :: IO Bool Source #

Do any untracked files exist?

gitListUntrackedFiles :: IO [Text] Source #

List all untracked files.

gitRemoteBranchExists :: Text -> Text -> IO Bool Source #

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

gitRemoteBranchHead :: Text -> Text -> IO (Maybe Text) Source #

Get the head of a remote branch.

gitResetHard :: Text -> IO () Source #

Blow away untracked files, and hard-reset to the given commit

gitStash :: IO (Maybe Text) Source #

Stash uncommitted changes (if any).

data GitWorktree Source #

Constructors

GitWorktree 

Instances

Instances details
Maybe Text ~ aplg => HasField "branch" GitWorktree aplg 
Instance details

Defined in Mit.Git

Methods

hasField :: GitWorktree -> (aplg -> GitWorktree, aplg) #

Text ~ aplg => HasField "commit" GitWorktree aplg 
Instance details

Defined in Mit.Git

Methods

hasField :: GitWorktree -> (aplg -> GitWorktree, aplg) #

Text ~ aplg => HasField "directory" GitWorktree aplg 
Instance details

Defined in Mit.Git

Methods

hasField :: GitWorktree -> (aplg -> GitWorktree, aplg) #

git :: ProcessOutput a => [Text] -> IO a Source #

git_ :: [Text] -> IO () Source #

debugPrintGit :: [Text] -> [Text] -> [Text] -> ExitCode -> IO () Source #