mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Make 'C-u C-x v v' handle unregistered files.
* lisp/vc/vc.el (vc-next-action): Make 'C-u C-x v v' handle unregistered files (bug#50602).
This commit is contained in:
parent
67a0eee727
commit
f6f87917fc
1 changed files with 5 additions and 1 deletions
|
|
@ -1216,7 +1216,11 @@ For old-style locking-based version control systems, like RCS:
|
|||
((eq state 'ignored)
|
||||
(error "Fileset files are ignored by the version-control system"))
|
||||
((or (null state) (eq state 'unregistered))
|
||||
(vc-register vc-fileset))
|
||||
(cond (verbose
|
||||
(let ((backend (vc-read-backend "Backend to register to: ")))
|
||||
(vc-register (cons backend (cdr vc-fileset)))))
|
||||
(t
|
||||
(vc-register vc-fileset))))
|
||||
;; Files are up-to-date, or need a merge and user specified a revision
|
||||
((or (eq state 'up-to-date) (and verbose (eq state 'needs-update)))
|
||||
(cond
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue