]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc-git.el (vc-git-checkin): Actually pass down TO-STASH.
authorSean Whitton <spwhitton@spwhitton.name>
Mon, 7 Apr 2025 02:05:08 +0000 (10:05 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 8 Apr 2025 05:46:54 +0000 (07:46 +0200)
(cherry picked from commit 3ccd25f6b01bcd2e103faa86b11c10017b64e69b)

lisp/vc/vc-git.el

index 0a85874c3b3cbe298cf47da760a1168437ae1202..0b0b9449f5d258cdc023acadea3127811ff7e99d 100644 (file)
@@ -1204,7 +1204,7 @@ It is based on `log-edit-mode', and has Git-specific extensions."
           (unwind-protect
               (vc-git-command nil 0 nil "apply" "--cached" patch-file)
             (delete-file patch-file))))
-      (when to-stash (vc-git--stash-staged-changes files)))
+      (when to-stash (vc-git--stash-staged-changes to-stash)))
     ;; When operating on the whole tree, better pass "-a" than ".",
     ;; since "."  fails when we're committing a merge.
     (apply #'vc-git-command nil 0