]> git.eshelyaron.com Git - emacs.git/commit
vc-revert-file: Support reverting directories
authorSean Whitton <spwhitton@spwhitton.name>
Mon, 17 Feb 2025 07:40:38 +0000 (15:40 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 18 Feb 2025 08:51:58 +0000 (09:51 +0100)
commit99070a0a94a3c24559aa130ff5acf67d8009471a
tree8921740ae1b5ce179d5fe712670ed148eda1a6f8
parent00115e886f2a132fe406164245c0a509eed8e437
vc-revert-file: Support reverting directories

* lisp/vc/vc.el (vc-revert-file): Support reverting directories
by calling vc-responsible-backend instead of vc-backend when
FILE is a directory (bug#37310, bug#43464).  Based on an
approach by Dmitry Gutov <dmitry@gutov.dev>.
(vc-rename-file): Add a FIXME to support reverting directories.
* etc/NEWS: Document the new functionality.

(cherry picked from commit 2d59974da71ec7ae20175d74269d4ca3d9be1cc7)
lisp/vc/vc.el