summaryrefslogtreecommitdiff
path: root/lisp/km-magit.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/km-magit.el')
-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