Add a minor mode and keybindings to sy-git.
authorSteve Youngs <steve@sxemacs.org>
Fri, 20 Oct 2017 02:26:57 +0000 (12:26 +1000)
committerSteve Youngs <steve@sxemacs.org>
Fri, 20 Oct 2017 02:26:57 +0000 (12:26 +1000)
commit65a52d420ddbad1ff041c5ad892903e934f6fc17
treec0756011bed4a5955fd2fc2faaad591b94b12315
parent0f3e24d07111f13b970c1ce1729ff67c9f55bc14
Add a minor mode and keybindings to sy-git.

With this changeset the goodies in sy-git.el are only available in buffers
of files that are under git control.  And new keybindings were added:

  `C-x G a' -- #'sy-git-add-log-entry
  `C-x G b' -- #'sy-git-blame
  `C-x G =' -- #'sy-git-diff
  `C-x G d' -- #'sy-git-diff
  `C-x G e' -- #'sy-git-ediff
  `C-x G l' -- #'sy-git-log

The global binding for #'sy-git-add-log-entry has been removed.

* sy-git.el (sy-git-mode-map): New.
(sy-git-mode): New minor mode.
(sy-git-activate-maybe): New, for use in `find-file-hooks'. Will
only activate if the visited file is under git control.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
sy-git.el