From 94d1bce47359c5fe432264cb8e602b38d105daad Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sat, 17 Feb 2024 21:58:49 +0200 Subject: gnosis-review-commit: Use gnosis-git commands --- gnosis.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnosis.el') diff --git a/gnosis.el b/gnosis.el index 1dead65..0b3cd2d 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1067,11 +1067,11 @@ NOTE-NUM: The number of notes reviewed in the session." (unless (file-exists-p (expand-file-name ".git" gnosis-dir)) (vc-create-repo 'Git)) ;; TODO: Redo this using vc - (shell-command (concat git " add " (shell-quote-argument "gnosis.db"))) - (shell-command (concat git " commit -m " - (shell-quote-argument (format "Total notes for session: %d " note-num)))) + (shell-command (format "%s %s %s" git "add" (shell-quote-argument "gnosis.db"))) + (shell-command (format "%s %s %s" git "commit -m" + (shell-quote-argument (format "Total notes for session: %d" note-num)))) (when gnosis-auto-push - (shell-command (concat git " " gnosis-auto-push-command))) + (gnosis-git-push gnosis-dir)) (message "Review session finished. %d notes reviewed." note-num))) (defun gnosis-review--session (notes) -- cgit v1.2.3