Code

git-gui: Expose the merge.diffstat configuration option
authorShawn O. Pearce <spearce@spearce.org>
Mon, 28 May 2007 21:58:07 +0000 (17:58 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 28 May 2007 21:58:07 +0000 (17:58 -0400)
Recently git-merge learned to avoid generating the diffstat after
a merge by reading the merge.diffstat configuration option.  By
default this option is assumed to be true, as that is the old
behavior.  However we can force it to false by setting it as a
standard boolean option.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh
lib/option.tcl

index c5f132993295d7f915255071b4005e44003d8c3a..f87c12ea88a5a45a7a152afa462c690d454c51eb 100755 (executable)
@@ -1262,6 +1262,7 @@ proc apply_config {} {
        }
 }
 
+set default_config(merge.diffstat) true
 set default_config(merge.summary) false
 set default_config(merge.verbosity) 2
 set default_config(user.name) {}
index 9f76f0294eb5c855c65b1531dc5d29fe3a82c565..4924b9aa56ce70c67331b515b8b508aeb241b6f8 100644 (file)
@@ -184,6 +184,7 @@ proc do_options {} {
 
                {b merge.summary {Summarize Merge Commits}}
                {i-1..5 merge.verbosity {Merge Verbosity}}
+               {b merge.diffstat {Show Diffstat After Merge}}
 
                {b gui.trustmtime  {Trust File Modification Timestamps}}
                {b gui.pruneduringfetch {Prune Tracking Branches During Fetch}}