git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] guilt: add option guilt.diffstat
@ 2008-12-13  2:14 Wu Fengguang
  2008-12-13  4:43 ` Josef Jeff Sipek
  0 siblings, 1 reply; 9+ messages in thread
From: Wu Fengguang @ 2008-12-13  2:14 UTC (permalink / raw)
  To: Josef Jeff Sipek; +Cc: git

Introduce option guilt.diffstat so that we don't have to type
"guilt refresh --diffstat" in its full form every time.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
---
 guilt |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

--- guilt.orig	2008-12-13 09:53:32.000000000 +0800
+++ guilt	2008-12-13 10:01:03.000000000 +0800
@@ -538,7 +538,7 @@ __refresh_patch()
 
 		[ ! -z "$4" ] && diffopts="-C -M --find-copies-harder"
 		
-		if [ ! -z "$5" ]; then
+		if [ -n "$5" -o "x$diffstat" = "x1" ]; then
 			(
 				echo "---"
 				git diff --stat $diffopts "$2"
@@ -627,6 +627,9 @@ guilt_push_diff_context=1
 # default autotag value
 AUTOTAG_DEFAULT=1
 
+# default diffstat value
+DIFFSTAT_DEFAULT=0
+
 #
 # Parse any part of .git/config that belongs to us
 #
@@ -635,6 +638,10 @@ AUTOTAG_DEFAULT=1
 autotag=`git config guilt.autotag`
 [ -z "$autotag" ] && autotag=$AUTOTAG_DEFAULT
 
+# generate diffstat?
+diffstat=`git config guilt.diffstat`
+[ -z "$diffstat" ] && diffstat=$DIFFSTAT_DEFAULT
+
 #
 # The following gets run every time this file is source'd
 #

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-12-20  4:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-13  2:14 [PATCH] guilt: add option guilt.diffstat Wu Fengguang
2008-12-13  4:43 ` Josef Jeff Sipek
2008-12-13  6:18   ` Boyd Stephen Smith Jr.
2008-12-13  6:23     ` Josef Jeff Sipek
2008-12-13 13:17   ` Wu Fengguang
2008-12-18 11:26     ` [PATCH][RESEND] " Wu Fengguang
2008-12-18 14:39       ` Josef Jeff Sipek
2008-12-19  0:08         ` Wu Fengguang
2008-12-20  4:33       ` Josef Jeff Sipek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).