]> git.eshelyaron.com Git - emacs.git/commit
vc-dir-mark-file: Consistently don't allow marking a subdirectory
authorSean Whitton <spwhitton@spwhitton.name>
Sun, 6 Apr 2025 01:09:32 +0000 (09:09 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 8 Apr 2025 05:45:33 +0000 (07:45 +0200)
commitcaaa55695a89a52dfc77e85b69cc03989faeb8f6
tree866df01ed7ed929e573d61f74febda8877008052
parent7b2ea6aae5a23f9d984a6646d2bfa5884fee9139
vc-dir-mark-file: Consistently don't allow marking a subdirectory

* lisp/vc/vc-dir.el (vc-dir-mark-file): Don't allow marking a
subdirectory if its parent is already marked.  This fixes an
inconsistency whereby if a subdirectory was already marked then
its parent could not be marked, but not vice-versa (bug #76769).

(cherry picked from commit a5f574429db1f820cc4d25bfb0e700aae050dc07)
lisp/vc/vc-dir.el