From 240c611c21752ee5e18a5fa946870eeb4c341527 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 4 Feb 2008 13:31:06 +0100 Subject: Display diffstat for whole index # gitsum.el | 2 +- # 1 files changed, 1 insertions(+), 1 deletions(-) # --- gitsum.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit 1.4.1