tools/magit: add -t/--tags action to magit-fetch

This commit is contained in:
Henrik Lissner 2019-05-13 00:20:06 -04:00
parent f696ff32f4
commit 10f60e7918
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -33,6 +33,10 @@ It is passed a user and repository name.")
(setq magit-display-buffer-function #'+magit-display-buffer)
(set-popup-rule! "^\\(?:\\*magit\\|magit:\\)" :ignore t)
;; Add --tags switch
(transient-append-suffix 'magit-fetch
"-p" '("-t" "Fetch all tags" ("-t" "--tags")))
;; so magit buffers can be switched to (except for process buffers)
(defun +magit-buffer-p (buf)
(with-current-buffer buf