feat(g/emacs): Add magit suffix for push-and-submit
Gerrit supports pushing, reviewing and submitting in one go, which will make pushing to my own emacs/system/etc. config way simpler Change-Id: Ie1eec7c1e56a9549e63fb81de6b6791647da6c4e
This commit is contained in:
parent
ca67aa6598
commit
9448a2262b
1 changed files with 13 additions and 1 deletions
|
@ -633,7 +633,19 @@
|
|||
#'magit-branch
|
||||
["c"]
|
||||
(list "C" "Checkout Clubhouse branch" #'magit-checkout-org-clubhouse-branch))
|
||||
)
|
||||
|
||||
(define-suffix-command magit-push-and-submit ()
|
||||
(interactive)
|
||||
(magit-push-refspecs
|
||||
"origin" "HEAD:refs/for/master%l=Code-Review+2,publish-comments,submit"
|
||||
nil))
|
||||
|
||||
(transient-append-suffix
|
||||
#'magit-push
|
||||
["r"]
|
||||
|
||||
(list "P" "Push and submit to gerrit"
|
||||
#'magit-push-and-submit)))
|
||||
|
||||
;; (defun grfn/split-window-more-sensibly (&optional window)
|
||||
;; (let ((window (or window (selected-window))))
|
||||
|
|
Loading…
Reference in a new issue