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:
Griffin Smith 2020-06-18 13:12:46 -04:00
parent ca67aa6598
commit 9448a2262b

View file

@ -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))))