From aad46c00bba10a1bc87b75d3d47ad272df06b969 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 18 Nov 2020 00:31:24 -0500 Subject: km/magit-patch-create-series: Add a comment about file arguments --- lisp/km-magit.el | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3