summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-17 21:58:26 +0200
committerThanos Apollo <[email protected]>2024-02-17 21:58:26 +0200
commitcbaca5f469f4bd9c262e34cddc066709499bb785 (patch)
tree4022a3e2aaa9086b7c2a91e7ce2a31d651580c4e /gnosis.el
parentc3d9f9b1b1ccb1018e66b6767ee5cb0b191858d0 (diff)
Add gnosis-git-push
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index 49f917d..3135592 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1037,6 +1037,14 @@ Used to reveal all clozes left with `gnosis-face-cloze-unanswered' face."
(when (eq 'exit (process-status proc))
(unless (process-live-p proc)
(delete-process proc)))))))
+
+;;;###autoload
+(cl-defun gnosis-git-push (&optional (dir gnosis-dir))
+ "Push change to git repository in DIR."
+ (interactive)
+ (let ((default-directory dir))
+ (gnosis-git--process "push")))
+
(defun gnosis-review-commit (note-num)
"Commit review session on git repository.