From feb13572986bd0e40aa9f951adc4975280577323 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Mon, 1 Jan 2024 13:12:11 +0200 Subject: gnosis-review-commit: Only commit the total number of notes reviewed --- gnosis.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnosis.el b/gnosis.el index 9f9d966..2f846f6 100644 --- a/gnosis.el +++ b/gnosis.el @@ -722,7 +722,7 @@ Used to reveal all clozes left with `gnosis-face-cloze-unanswered' face." ("cloze" (gnosis-review-cloze id)) (_ (error "Malformed note type"))))))) -(defun gnosis-review-commit (type note-num) +(defun gnosis-review-commit (note-num) "Commit review session on git repository. This function initializes the `gnosis-dir' as a Git repository if it is not @@ -740,7 +740,7 @@ NOTE-NUM: The number of notes reviewed in the session." (sit-for 0.2) (shell-command (concat git " add " (shell-quote-argument "gnosis.db"))) (shell-command (concat git " commit -m " - (shell-quote-argument (concat (format "Review type: %s | Notes: %d " type note-num))))) + (shell-quote-argument (concat (format "Total notes for session: %d " note-num))))) (message "Review session finished. %d notes reviewed." note-num))) (defun gnosis-review--session (notes) -- cgit v1.2.3