]> git.eshelyaron.com Git - emacs.git/commit
VC-Dir: Offer to register files before checking in
authorSean Whitton <spwhitton@spwhitton.name>
Wed, 9 Apr 2025 04:37:32 +0000 (12:37 +0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 11 Apr 2025 11:31:29 +0000 (13:31 +0200)
commit36ef9ac17e4f37567a5aed4bbbf2a9ea1c06b9d3
tree697ae6d4ea9ffbd21ee5c4d3664e58a9ed412b14
parentf066d8ff9fb6c9f9a73d6017e5178b47341395ea
VC-Dir: Offer to register files before checking in

* lisp/vc/vc.el (vc-only-files-state-and-model): Rewrite
checking that all files are in compatible VC states.  In
particular, consistently return 'edited' when all files are
either added, removed or edited, instead of allowing the return
value to depend on the order of the files in VC-Dir, and offer
to registered unregistered files if doing so would allow the
operation to proceed.
(vc-compatible-state): Delete.
(vc-next-action): Replace call to vc-compatible-state.
Document, in this command's docstring, the new feature
implemented in vc-only-files-state-and-model.
* etc/NEWS: Announce the new feature.

(cherry picked from commit 253364e2c71bfaaa3ca623ed23f1cae6548a16c7)
lisp/vc/vc.el