aboutsummaryrefslogtreecommitdiffstats
path: root/app/History
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-28 13:06:48 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-28 13:10:07 +0100
commit739c0d06b63bed7619b39eb189c5e5a34fd8da49 (patch)
tree0c4c0f39ccce82f5a325045db3c043c699e5c907 /app/History
parentc138fb9910c661f7efd00cc7dceb6fc68dc790a9 (diff)
editing issues preserves comment style
Diffstat (limited to 'app/History')
-rw-r--r--app/History/PartialCommitInfo.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/History/PartialCommitInfo.hs b/app/History/PartialCommitInfo.hs
index b37ada5..7497f38 100644
--- a/app/History/PartialCommitInfo.hs
+++ b/app/History/PartialCommitInfo.hs
@@ -99,13 +99,14 @@ fromComment cwd comment = do
end = comment.end,
tags = maybe [] I.extractTags description,
markers = markers,
- rawText = rawText
+ rawText = rawText,
+ commentStyle = commentStyle
}
else Nothing
)
where
- rawText = comment.text
- (title', description) = I.extractText comment.file_type rawText
+ (commentStyle, rawText) = G.uncomment comment.file_type comment.text
+ (title', description) = I.extractText rawText
(markers, title) = I.stripIssueMarkers title'
dieOfInvalidTreeGrepperResult :: E.InvalidTreeGrepperResult -> IO a