aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-05-28 17:58:07 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-05-28 17:58:07 -0400
commitfc8ce406fac73536a14611ce871a06db5a5a22b3 (patch)
treee05bb69caa62acae0a831ffb1d39aa5cd8b58765
parentaa252f194b6a32240117ef339631f42842b6d5b4 (diff)
downloadgit-fc8ce406fac73536a14611ce871a06db5a5a22b3.tar.gz
git-fc8ce406fac73536a14611ce871a06db5a5a22b3.tar.xz
git-gui: Expose the merge.diffstat configuration option
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>
-rwxr-xr-xgit-gui.sh1
-rw-r--r--lib/option.tcl1
2 files changed, 2 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index c5f132993..f87c12ea8 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -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) {}
diff --git a/lib/option.tcl b/lib/option.tcl
index 9f76f0294..4924b9aa5 100644
--- a/lib/option.tcl
+++ b/lib/option.tcl
@@ -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}}