summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2023-01-29 15:59:32 +0000
committerArun Isaac2023-01-29 15:59:32 +0000
commitd5adbcf983bb2d83fd46041ad3226dd8912266a6 (patch)
tree990d7dfb429fd7d4f346a12d4210f49815d4bbac
parent6b3643c4d80507fa7e004fdb32b6768a45b4142c (diff)
downloadtissue-d5adbcf983bb2d83fd46041ad3226dd8912266a6.tar.gz
tissue-d5adbcf983bb2d83fd46041ad3226dd8912266a6.tar.lz
tissue-d5adbcf983bb2d83fd46041ad3226dd8912266a6.zip
commit: Explain use of commit-body for snippet source text.
* tissue/commit.scm (document-snippet-source-text): Explain use of commit-body.
-rw-r--r--tissue/commit.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/tissue/commit.scm b/tissue/commit.scm
index 151a744..c151d3a 100644
--- a/tissue/commit.scm
+++ b/tissue/commit.scm
@@ -54,6 +54,8 @@
(define-method (document-snippet-source-text (commit <commit>))
"Return the source text for COMMIT from which to extract a search
result snippet."
+ ;; The snippet source text excludes the first paragraph (i.e., the
+ ;; summary line) of the commit. Hence, we use commit-body.
(commit-body
(commit-lookup (current-git-repository)
(string->oid (commit-hash commit)))))