summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-17 21:58:49 +0200
committerThanos Apollo <[email protected]>2024-02-17 21:58:49 +0200
commit94d1bce47359c5fe432264cb8e602b38d105daad (patch)
tree6f08281eb1b604abf0ff75f9da8d359f0b44bd00 /gnosis.el
parent8a9528c66e23d3d61b2e8a66d86f37828704e74e (diff)
gnosis-review-commit: Use gnosis-git commands
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el8
1 files changed, 4 insertions, 4 deletions
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)