summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-11-18 00:31:24 -0500
committerKyle Meyer <kyle@kyleam.com>2020-11-18 00:34:27 -0500
commitaad46c00bba10a1bc87b75d3d47ad272df06b969 (patch)
tree335ec0868b9ba834e4f494914365d1768d41c89c /lisp
parent01d98028dc951bbea4ed451474078aef296718dd (diff)
downloademacs.d-aad46c00bba10a1bc87b75d3d47ad272df06b969.tar.gz
km/magit-patch-create-series: Add a comment about file arguments
Diffstat (limited to 'lisp')
-rw-r--r--lisp/km-magit.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index 2d44808..280f2af 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -874,6 +874,10 @@ appending [M/N] to each entry."
(defun km/magit-patch-create-series (&optional args)
(interactive (list (transient-args 'magit-patch-create)))
+ ;; Note: I never use a pathspec when formatting a patch, so I'm
+ ;; being lazy here and not doing proper processing of file
+ ;; arguments. The string operations below will fail if files are
+ ;; specified.
(when (magit-anything-modified-p t)
(user-error "There are uncommitted changes"))
(setq args (seq-remove