diff options
author | Kyle Meyer <kyle@kyleam.com> | 2019-10-10 18:19:33 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2019-10-10 18:20:19 -0400 |
commit | eda4c236e1f19008a32783cb2c0c88e42b8098c2 (patch) | |
tree | f3aae7072abd04121d8315d7487e836baa4fbda0 | |
parent | d06363b393e5b1519b15f4123dd67c0f928259bf (diff) | |
download | emacs.d-eda4c236e1f19008a32783cb2c0c88e42b8098c2.tar.gz |
magit: Add command for toggling skipFetchAll
-rw-r--r-- | lisp/km-magit.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el index d83e9e1..038e7d6 100644 --- a/lisp/km-magit.el +++ b/lisp/km-magit.el @@ -155,6 +155,15 @@ namespace." ((magit-remote-branch-p rev) (format "Merge pull request #%s from %s" pr rev))))) +(defun km/magit-toggle-remote-skip (remote) + "Toggle REMOTE.skipFetchAll value." + (interactive (list (magit-read-remote "Remote"))) + (let ((keys (list "remote" remote "skipFetchAll"))) + (apply #'magit-set + (and (not (apply #'magit-get-boolean keys)) + "true") + keys))) + (defun km/magit-branch-rename (old new &optional force) "Like `magit-branch-rename', but use old branch as initial prompt." (interactive |