[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/agitate 69e8f87214 04/67: Add agitate-vc-git-push
From: |
ELPA Syncer |
Subject: |
[elpa] externals/agitate 69e8f87214 04/67: Add agitate-vc-git-push |
Date: |
Wed, 28 Sep 2022 16:57:25 -0400 (EDT) |
branch: externals/agitate
commit 69e8f87214bdc907bcdf28b2afa01d3792050156
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add agitate-vc-git-push
---
agitate.el | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/agitate.el b/agitate.el
index bb68c6cbf9..59c79d29cf 100644
--- a/agitate.el
+++ b/agitate.el
@@ -32,6 +32,7 @@
;;; Code:
(require 'log-edit)
+(require 'vc-git)
(defgroup agitate ()
"Work-in-progress."
@@ -62,5 +63,19 @@ file extension. Else omit it."
(interactive "P" log-edit-mode)
(insert (format "%s: " (agitate--log-edit-extract-file
with-file-extension))))
+;;;; Commands for vc-git (Git backend for the Version Control framework)
+
+(defun agitate--vc-git-prompt-remote ()
+ "Helper prompt for `agitate-git-push'."
+ (when-let ((remotes (process-lines vc-git-program "remote")))
+ (if (length> remotes 1)
+ (completing-read "Select Git remote: " remotes nil t)
+ (car remotes))))
+
+;;;###autoload
+(defun agitate-vc-git-push (prompt)
+ "Substitute for `vc-git-push' with the same meaning for PROMPT."
+ (vc-git--pushpull "push" prompt (unless prompt
`(,(agitate--vc-git-prompt-remote)))))
+
(provide 'agitate)
;;; agitate.el ends here
- [elpa] externals/agitate 052d3e3570 61/67: Simplify agitate--vc-git-commit-prompt, (continued)
- [elpa] externals/agitate 052d3e3570 61/67: Simplify agitate--vc-git-commit-prompt, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 51fd96aba6 56/67: Tweak format of quote in the README.org, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate dce39b452c 63/67: Make agitate-vc-git-kill-commit-message use completion, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate da4a2bb77a 34/67: Update agitate.el headers and Commentary, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 7564713208 29/67: Rewrite outline heading for diffs, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate f736eb51a7 67/67: Tweak markup of "git-grep(1)", ELPA Syncer, 2022/09/28
- [elpa] externals/agitate b6e5cdbdda 14/67: Add agitate-enable-outline-minor-mode function, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate d1de59188d 08/67: Set minimum Emacs to 28.1, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 764644c218 15/67: Use 'length>' again since b6e5cdb requires Emacs 28.1, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 95e6f9186e 09/67: Update one-line description, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 69e8f87214 04/67: Add agitate-vc-git-push,
ELPA Syncer <=
- [elpa] externals/agitate 5a1b31fe09 06/67: Add agitate-log-view-kill-revision command, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 2250f3d039 33/67: Expand the README.org, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 2c9f6bb3be 20/67: Rename to agitate-vc-git-push-prompt-for-remote, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 418d24bd13 60/67: Tweak comments about gitmoji, conventional commits, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate d808406253 48/67: Edit vc-git-show (PROOF OF CONCEPT), ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 4192d8d892 51/67: Clarify doc of helper function, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 9146d7cd54 31/67: Rename to agitate-diff-enable-outline-minor-mode, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 27cdb6fd95 57/67: Improve agitate-vc-git-prompt-format-patch-single, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 1df9714eb6 49/67: Accept optional long agitate--vc-git-commit-prompt, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate ed6c5cfb71 32/67: Capitalise Unicode in doc string, ELPA Syncer, 2022/09/28