diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2008-02-04 13:31:06 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2008-02-04 13:31:06 +0100 |
commit | 240c611c21752ee5e18a5fa946870eeb4c341527 (patch) | |
tree | 436aa1d0e9c8025eee6ccc8377f40505938e4357 | |
parent | aea8cbf49f774d8521483b326d72cd80f3a45cf1 (diff) | |
download | gitsum-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.el | 2 |
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") |