From 71302884dd3dec26e34916c30e3893dd15b786f8 Mon Sep 17 00:00:00 2001 From: Juri Linkov <juri@linkov.net> Date: Mon, 12 Sep 2022 21:07:05 +0300 Subject: '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 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/NEWS b/etc/NEWS index 4248b46d8b0..562cb701826 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1647,6 +1647,10 @@ info node. This command only works for the Emacs and Emacs Lisp manuals. ** VC +*** 'C-x v b' prefix key is used now for branch commands. +'vc-print-branch-log' is bound to 'C-x v b l', and new commands are +'vc-create-branch' ('C-x v b c') and 'vc-switch-branch' ('C-x v b s'). + +++ *** New command '%' ('vc-dir-mark-by-regexp'). This command marks files based on a regexp. If given a prefix -- cgit v1.2.1