]> git.eshelyaron.com Git - emacs.git/commit
'C-x v b' prefix key is used for branch commands to create/switch/print branch
authorJuri Linkov <juri@linkov.net>
Mon, 12 Sep 2022 18:07:05 +0000 (21:07 +0300)
committerJuri Linkov <juri@linkov.net>
Mon, 12 Sep 2022 18:07:05 +0000 (21:07 +0300)
commit71302884dd3dec26e34916c30e3893dd15b786f8
tree0f70255204e97ef813af11e5b56f0d98668c03cb
parent2f9f5e4850a65ce5ead0fd9ee934dfe29d2d01f3
'C-x v b' prefix key is used for branch commands to create/switch/print branch

* lisp/vc/vc.el (vc-create-branch): New command.
(vc-retrieve-tag): Add new optional arg 'branchp'.
(vc-switch-branch): New command (bug#50344).

* lisp/vc/vc-hooks.el (vc-prefix-map): Bind "b c" to vc-create-branch,
"b l" to vc-print-branch-log, "b s" to vc-switch-branch.  Remove obsolete
and suppressed "b" from vc-switch-backend.

* lisp/vc/vc-dir.el (vc-dir-mode-map): Rebind 'branch-map' from "B" to "b"
for consistency with 'vc-prefix-map'.

* lisp/vc/vc-git.el (vc-git-create-tag): For a new branch read
its start-point.  Ask a confirmation if modified files exist.
etc/NEWS
lisp/vc/vc-dir.el
lisp/vc/vc-git.el
lisp/vc/vc-hooks.el
lisp/vc/vc.el