diff options
author | Alexander Foremny <aforemny@posteo.de> | 2023-11-30 13:28:30 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2023-11-30 14:40:17 +0100 |
commit | 773dd51aec39ef4ef8d5818ffe279b0737d4d567 (patch) | |
tree | f26033b2c0294857d25cf6dc5aa0a5b7791663c3 /app/History/PartialCommitInfo.hs | |
parent | 4718d91d1a641b255fec2dd8a9b36fd3d4e60ea6 (diff) |
feat: add -p|--patch to log command
Diffstat (limited to 'app/History/PartialCommitInfo.hs')
-rw-r--r-- | app/History/PartialCommitInfo.hs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/History/PartialCommitInfo.hs b/app/History/PartialCommitInfo.hs index 48b631e..21a890a 100644 --- a/app/History/PartialCommitInfo.hs +++ b/app/History/PartialCommitInfo.hs @@ -47,20 +47,18 @@ getPartialCommitInfos = do getCommitInfoOf :: CommitHash -> IO PartialCommitInfo getCommitInfoOf WorkingTree = do - (issuesWorkingTreeChanged, filesChanged) <- getIssuesAndFilesWorkingTreeChanged [] + (issues, filesChanged) <- getIssuesAndFilesWorkingTreeChanged [] pure $ PartialCommitInfo { hash = WorkingTree, - filesChanged = filesChanged, - issues = issuesWorkingTreeChanged + .. } getCommitInfoOf (Commit hash) = cached (hash <> (T.pack ".changed")) $ \_ -> do - (issuesCommitChanged, filesChanged) <- getIssuesAndFilesCommitChanged hash + (issues, filesChanged) <- getIssuesAndFilesCommitChanged hash pure $ PartialCommitInfo { hash = Commit hash, - filesChanged = filesChanged, - issues = issuesCommitChanged + .. } -- | Given the hash of a commit, get all issues in the files which have |