Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- gitdir :: Text
- data DiffResult
- data GitCommitInfo = GitCommitInfo {}
- prettyGitCommitInfo :: GitCommitInfo -> Text
- data GitConflict = GitConflict GitConflictXY Text
- parseGitConflict :: Text -> Maybe GitConflict
- showGitConflict :: GitConflict -> Text
- data GitConflictXY
- parseGitConflictXY :: Text -> Maybe GitConflictXY
- showGitConflictXY :: GitConflictXY -> Text
- data GitVersion = GitVersion Int Int Int
- showGitVersion :: GitVersion -> Text
- gitApplyStash :: Text -> IO [GitConflict]
- gitBranch :: Text -> IO ()
- gitBranchExists :: Text -> IO Bool
- gitBranchHead :: Text -> IO (Maybe Text)
- gitBranchWorktreeDir :: Text -> IO (Maybe Text)
- gitCommit :: IO Bool
- gitCommitsBetween :: Maybe Text -> Text -> IO [GitCommitInfo]
- gitConflicts :: IO [GitConflict]
- gitCreateStash :: IO Text
- gitCurrentBranch :: IO Text
- gitDiff :: IO DiffResult
- gitExistCommitsBetween :: Text -> Text -> IO Bool
- gitExistUntrackedFiles :: IO Bool
- gitFetch :: Text -> IO Bool
- gitFetch_ :: Text -> IO ()
- gitHead :: IO Text
- gitListUntrackedFiles :: IO [Text]
- gitMerge :: Text -> Text -> IO (Either (IO [GitConflict]) ())
- gitMergeInProgress :: IO Bool
- gitPush :: Text -> IO Bool
- gitRemoteBranchExists :: Text -> Text -> IO Bool
- gitRemoteBranchHead :: Text -> Text -> IO (Maybe Text)
- gitResetHard :: Text -> IO ()
- gitRevert :: Text -> IO ()
- gitStash :: IO (Maybe Text)
- gitSwitch :: Text -> IO ()
- gitUnstageChanges :: IO ()
- gitVersion :: IO GitVersion
- data GitWorktree = GitWorktree {}
- gitWorktreeList :: IO [GitWorktree]
- parseGitRepo :: Text -> Maybe (Text, Text)
- git :: ProcessOutput a => [Text] -> IO a
- git_ :: [Text] -> IO ()
- git2 :: [Text] -> IO ExitCode
- debugPrintGit :: [Text] -> [Text] -> [Text] -> ExitCode -> IO ()
Documentation
data GitCommitInfo Source #
Instances
Show GitCommitInfo Source # | |
Defined in Mit.Git showsPrec :: Int -> GitCommitInfo -> ShowS # show :: GitCommitInfo -> String # showList :: [GitCommitInfo] -> ShowS # | |
Text ~ aplg => HasField "author" GitCommitInfo aplg | |
Defined in Mit.Git hasField :: GitCommitInfo -> (aplg -> GitCommitInfo, aplg) # | |
Text ~ aplg => HasField "date" GitCommitInfo aplg | |
Defined in Mit.Git hasField :: GitCommitInfo -> (aplg -> GitCommitInfo, aplg) # | |
Text ~ aplg => HasField "hash" GitCommitInfo aplg | |
Defined in Mit.Git hasField :: GitCommitInfo -> (aplg -> GitCommitInfo, aplg) # | |
Text ~ aplg => HasField "shorthash" GitCommitInfo aplg | |
Defined in Mit.Git hasField :: GitCommitInfo -> (aplg -> GitCommitInfo, aplg) # | |
Text ~ aplg => HasField "subject" GitCommitInfo aplg | |
Defined in Mit.Git hasField :: GitCommitInfo -> (aplg -> GitCommitInfo, aplg) # |
data GitConflict Source #
Instances
Eq GitConflict Source # | |
Defined in Mit.Git (==) :: GitConflict -> GitConflict -> Bool # (/=) :: GitConflict -> GitConflict -> Bool # | |
Show GitConflict Source # | |
Defined in Mit.Git showsPrec :: Int -> GitConflict -> ShowS # show :: GitConflict -> String # showList :: [GitConflict] -> ShowS # |
parseGitConflict :: Text -> Maybe GitConflict Source #
showGitConflict :: GitConflict -> Text Source #
data GitConflictXY Source #
Instances
Eq GitConflictXY Source # | |
Defined in Mit.Git (==) :: GitConflictXY -> GitConflictXY -> Bool # (/=) :: GitConflictXY -> GitConflictXY -> Bool # | |
Show GitConflictXY Source # | |
Defined in Mit.Git showsPrec :: Int -> GitConflictXY -> ShowS # show :: GitConflictXY -> String # showList :: [GitConflictXY] -> ShowS # |
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 -> IO [GitConflict] Source #
Apply stash, return conflicts.
gitBranchWorktreeDir :: Text -> IO (Maybe Text) Source #
Get the directory a branch's worktree is checked out in, if it exists.
gitCommitsBetween :: Maybe Text -> Text -> IO [GitCommitInfo] Source #
gitConflicts :: IO [GitConflict] Source #
gitCreateStash :: IO Text Source #
gitCurrentBranch :: IO Text Source #
Get the current branch.
gitDiff :: IO DiffResult Source #
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?
gitResetHard :: Text -> IO () Source #
Blow away untracked files, and hard-reset to the given commit
gitUnstageChanges :: IO () Source #
data GitWorktree Source #
Instances
Maybe Text ~ aplg => HasField "branch" GitWorktree aplg | |
Defined in Mit.Git hasField :: GitWorktree -> (aplg -> GitWorktree, aplg) # | |
Text ~ aplg => HasField "commit" GitWorktree aplg | |
Defined in Mit.Git hasField :: GitWorktree -> (aplg -> GitWorktree, aplg) # | |
Text ~ aplg => HasField "directory" GitWorktree aplg | |
Defined in Mit.Git hasField :: GitWorktree -> (aplg -> GitWorktree, aplg) # |
gitWorktreeList :: IO [GitWorktree] Source #