about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2008-02-04 13:31:06 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2008-02-04 13:31:06 +0100
commit240c611c21752ee5e18a5fa946870eeb4c341527 (patch)
tree436aa1d0e9c8025eee6ccc8377f40505938e4357
parentaea8cbf49f774d8521483b326d72cd80f3a45cf1 (diff)
downloadgitsum-240c611c21752ee5e18a5fa946870eeb4c341527.tar.gz
gitsum-240c611c21752ee5e18a5fa946870eeb4c341527.tar.xz
gitsum-240c611c21752ee5e18a5fa946870eeb4c341527.zip
Display diffstat for whole index
#  gitsum.el |    2 +-
#  1 files changed, 1 insertions(+), 1 deletions(-)
#
-rw-r--r--gitsum.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitsum.el b/gitsum.el
index 38786cb..04e81d5 100644
--- a/gitsum.el
+++ b/gitsum.el
@@ -56,7 +56,7 @@ A numeric argument serves as a repeat count."
   (interactive)
   (shell-command-on-region (point-min) (point-max) "git apply --check --cached")
   (let ((buffer (get-buffer-create "*gitsum-commit*")))
-    (shell-command-on-region (point-min) (point-max) "git apply --stat" buffer)
+    (shell-command-on-region (point-min) (point-max) "(cat; git diff --cached) | git apply --stat" buffer)
     (with-current-buffer buffer
       (goto-char (point-min))
       (insert "\n")