mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
'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.
This commit is contained in:
parent
2f9f5e4850
commit
71302884dd
5 changed files with 75 additions and 17 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue