mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
tools/magit: add -t/--tags action to magit-fetch
This commit is contained in:
@ -33,6 +33,10 @@ It is passed a user and repository name.")
|
|||||||
(setq magit-display-buffer-function #'+magit-display-buffer)
|
(setq magit-display-buffer-function #'+magit-display-buffer)
|
||||||
(set-popup-rule! "^\\(?:\\*magit\\|magit:\\)" :ignore t)
|
(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)
|
;; so magit buffers can be switched to (except for process buffers)
|
||||||
(defun +magit-buffer-p (buf)
|
(defun +magit-buffer-p (buf)
|
||||||
(with-current-buffer buf
|
(with-current-buffer buf
|
||||||
|
Reference in New Issue
Block a user