git: add SPC g f h to get the commit history of the current file
This commit is contained in:
parent
1c4f685b13
commit
0a01159572
|
@ -106,6 +106,7 @@ Git commands (start with ~g~):
|
|||
|-------------+-----------------------------------------------------|
|
||||
| ~SPC g >~ | show submodule prompt |
|
||||
| ~SPC g b~ | open a =magit= blame |
|
||||
| ~SPC g f h~ | show file commits history |
|
||||
| ~SPC g H c~ | clear highlights |
|
||||
| ~SPC g H h~ | highlight regions by age of commits |
|
||||
| ~SPC g H t~ | highlight regions by last updated time |
|
||||
|
|
|
@ -120,8 +120,10 @@
|
|||
(setenv "GIT_ASKPASS" "git-gui--askpass"))
|
||||
;; key bindings
|
||||
(spacemacs/declare-prefix "gd" "diff")
|
||||
(spacemacs/declare-prefix "gf" "file")
|
||||
(spacemacs/set-leader-keys
|
||||
"gb" 'spacemacs/git-blame-micro-state
|
||||
"gfh" 'magit-log-buffer-file
|
||||
"gm" 'magit-dispatch-popup
|
||||
"gs" 'magit-status
|
||||
"gS" 'magit-stage-file
|
||||
|
|
Loading…
Reference in a new issue