]> git.eshelyaron.com Git - emacs.git/commit
Don't use diff-mode buffer as a patch when it's visiting a file (bug#59962)
authorJuri Linkov <juri@linkov.net>
Sun, 11 Dec 2022 17:24:34 +0000 (19:24 +0200)
committerJuri Linkov <juri@linkov.net>
Sun, 11 Dec 2022 17:24:34 +0000 (19:24 +0200)
commit733cdeabfb91520584ab88253292c1451f295bae
tree8ab9f07c1f84a532a51f6f9ae86a926f6f7220c9
parent87475f4af21daf8a09f08e359a22c33e0173f3ee
Don't use diff-mode buffer as a patch when it's visiting a file (bug#59962)

* lisp/vc/vc.el (vc-deduce-fileset-1): Don't call diff-vc-deduce-fileset
for diff-mode when buffer-file-name is non-nil.  This is because in this case
a file with a diff might be committed to VCS.  So don't use it as a patch
to commit with 'C-x v v'.
lisp/vc/vc.el