Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add a short-cut to switch to git-status

  • Loading branch information...
commit d331786f7c4db692f10ce651d05d21f5ebe2ec9d 1 parent 0a97a9c
Christian Neukirchen authored February 04, 2008

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  gitsum.el
6  gitsum.el
@@ -14,6 +14,7 @@
14 14
 (easy-mmode-defmap gitsum-diff-mode-shared-map
15 15
   '(("c" . gitsum-commit)
16 16
     ("g" . gitsum-refresh)
  17
+    ("s" . gitsum-switch-to-git-status)
17 18
     ("q" . gitsum-kill-buffer)
18 19
     ("u" . gitsum-undo))
19 20
   "Basic keymap for `gitsum-diff-mode', bound to various prefix keys.")
@@ -95,6 +96,11 @@ A numeric argument serves as a repeat count."
95 96
   (unless (buffer-modified-p)
96 97
     (kill-buffer nil)))
97 98
 
  99
+(defun gitsum-switch-to-git-status ()
  100
+  "Switch to git-status."
  101
+  (interactive)
  102
+  (git-status default-directory))
  103
+
98 104
 (defun gitsum ()
99 105
   "Entry point into gitsum-diff-mode."
100 106
   (interactive)

0 notes on commit d331786

Please sign in to comment.
Something went wrong with that request. Please try again.