summaryrefslogtreecommitdiff
path: root/lisp/vc/vc-hooks.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2022-09-12 21:07:05 +0300
committerJuri Linkov <juri@linkov.net>2022-09-12 21:07:05 +0300
commit71302884dd3dec26e34916c30e3893dd15b786f8 (patch)
tree0f70255204e97ef813af11e5b56f0d98668c03cb /lisp/vc/vc-hooks.el
parent2f9f5e4850a65ce5ead0fd9ee934dfe29d2d01f3 (diff)
downloademacs-71302884dd3dec26e34916c30e3893dd15b786f8.tar.gz
emacs-71302884dd3dec26e34916c30e3893dd15b786f8.tar.bz2
emacs-71302884dd3dec26e34916c30e3893dd15b786f8.zip
'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.
Diffstat (limited to 'lisp/vc/vc-hooks.el')
-rw-r--r--lisp/vc/vc-hooks.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index 1f0eeb7e18a..7f0d9e4d862 100644
--- a/lisp/vc/vc-hooks.el
+++ b/lisp/vc/vc-hooks.el
@@ -857,6 +857,9 @@ In the latter case, VC mode is deactivated for this buffer."
;; (autoload 'vc-prefix-map "vc" nil nil 'keymap)
(defvar-keymap vc-prefix-map
"a" #'vc-update-change-log
+ "b c" #'vc-create-branch
+ "b l" #'vc-print-branch-log
+ "b s" #'vc-switch-branch
"d" #'vc-dir
"g" #'vc-annotate
"G" #'vc-ignore
@@ -883,9 +886,6 @@ In the latter case, VC mode is deactivated for this buffer."
(fset 'vc-prefix-map vc-prefix-map)
(define-key ctl-x-map "v" 'vc-prefix-map)
-(with-suppressed-warnings ((obsolete vc-switch-backend))
- (keymap-set vc-prefix-map "b" #'vc-switch-backend))
-
(defvar vc-menu-map
(let ((map (make-sparse-keymap "Version Control")))
;;(define-key map [show-files]