Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
High-level git operations
Synopsis
- data DiffResult
- data GitCommitInfo = GitCommitInfo {}
- prettyGitCommitInfo :: GitCommitInfo -> Builder
- data GitConflict
- showGitConflict :: GitConflict -> Builder
- data GitVersion = GitVersion Int Int Int
- showGitVersion :: GitVersion -> Text
- git :: ProcessOutput a => [Text] -> Mit Env a
- git_ :: [Text] -> Mit Env ()
- gitApplyStash :: Text -> Mit Env [GitConflict]
- gitBranchHead :: Text -> Mit Env (Maybe Text)
- gitBranchWorktreeDir :: Text -> Mit Env (Maybe Text)
- gitCommit :: Mit Env Bool
- gitCommitsBetween :: Maybe Text -> Text -> Mit Env (Seq GitCommitInfo)
- gitConflicts :: Mit Env [GitConflict]
- gitConflictsWith :: Text -> Mit Env [GitConflict]
- gitCreateStash :: Mit Env Text
- gitDeleteChanges :: Mit Env ()
- gitDiff :: Mit Env DiffResult
- gitExistCommitsBetween :: Text -> Text -> Mit Env Bool
- gitExistUntrackedFiles :: Mit Env Bool
- gitFetch :: Text -> Mit Env Bool
- gitFetch_ :: Text -> Mit Env ()
- gitHead :: Mit Env Text
- gitIsMergeCommit :: Text -> Mit Env Bool
- gitMaybeHead :: Mit Env (Maybe Text)
- gitMergeInProgress :: Mit Env Bool
- gitPush :: Text -> Mit Env Bool
- gitRemoteBranchExists :: Text -> Text -> Mit Env Bool
- gitRemoteBranchHead :: Text -> Text -> Mit Env (Maybe Text)
- gitRevParseAbsoluteGitDir :: ProcessOutput a => Mit Env a
- gitUnstageChanges :: Mit Env ()
- gitVersion :: Goto Env [Stanza] -> Mit Env GitVersion
- gitDefaultBranch :: Text -> Mit Env Text
- gitShow :: Text -> Mit Env GitCommitInfo
- parseGitRepo :: Text -> Maybe (Text, Text)
Documentation
data GitCommitInfo Source #
Instances
Show GitCommitInfo Source # | |
Defined in Mit.Git showsPrec :: Int -> GitCommitInfo -> ShowS # show :: GitCommitInfo -> String # showList :: [GitCommitInfo] -> ShowS # |
data GitConflict Source #
Instances
Show GitConflict Source # | |
Defined in Mit.Git showsPrec :: Int -> GitConflict -> ShowS # show :: GitConflict -> String # showList :: [GitConflict] -> ShowS # | |
Eq GitConflict Source # | |
Defined in Mit.Git (==) :: GitConflict -> GitConflict -> Bool # (/=) :: GitConflict -> GitConflict -> Bool # |
showGitConflict :: GitConflict -> Builder Source #
data GitVersion Source #
Instances
Eq GitVersion Source # | |
Defined in Mit.Git (==) :: GitVersion -> GitVersion -> Bool # (/=) :: GitVersion -> GitVersion -> Bool # | |
Ord GitVersion Source # | |
Defined in Mit.Git compare :: GitVersion -> GitVersion -> Ordering # (<) :: GitVersion -> GitVersion -> Bool # (<=) :: GitVersion -> GitVersion -> Bool # (>) :: GitVersion -> GitVersion -> Bool # (>=) :: GitVersion -> GitVersion -> Bool # max :: GitVersion -> GitVersion -> GitVersion # min :: GitVersion -> GitVersion -> GitVersion # |
showGitVersion :: GitVersion -> Text 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.
gitCommitsBetween :: Maybe Text -> Text -> Mit Env (Seq GitCommitInfo) Source #
gitConflicts :: Mit Env [GitConflict] Source #
gitConflictsWith :: Text -> Mit Env [GitConflict] Source #
Get the conflicts with the given commitish.
Precondition: there is no merge in progress.
gitDeleteChanges :: Mit Env () Source #
Delete all changes in the index and working tree.
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.
gitRevParseAbsoluteGitDir :: ProcessOutput a => Mit Env a Source #
gitUnstageChanges :: Mit Env () Source #
gitVersion :: Goto Env [Stanza] -> Mit Env GitVersion Source #