]> git.eshelyaron.com Git - emacs.git/commit
VC: Tighten up switching branches
authorSean Whitton <spwhitton@spwhitton.name>
Fri, 18 Jul 2025 13:53:43 +0000 (14:53 +0100)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 11:57:38 +0000 (13:57 +0200)
commit97de6ae2b6e63a94768f982c09268e42f92344a9
tree5d421d39b33f8d99319164b05206cf9d0e877439
parent5ccc84522d59b234773c3848a75e7629824fc0ad
VC: Tighten up switching branches

* lisp/vc/vc.el: Require backend 'create-tag' functions to
prompt for the starting point of the branch.
(vc-retrieve-tag, vc-switch-branch): Accept empty NAME only when
not switching branches: it doesn't make sense to switch to the
current branch.  Plain 'C-x v r' can still be used to check out
the latest revisions on the current branch.

(cherry picked from commit 0ac1fe8d73ba83164c564bc579f3387d39856f31)
lisp/vc/vc.el