From d5adbcf983bb2d83fd46041ad3226dd8912266a6 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 29 Jan 2023 15:59:32 +0000 Subject: commit: Explain use of commit-body for snippet source text. * tissue/commit.scm (document-snippet-source-text): Explain use of commit-body. --- tissue/commit.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tissue') 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 )) "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))))) -- cgit v1.2.3