git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/2] Ensure consistent usage of mergetool.keepBackup in git-gui
@ 2009-04-10 19:33 Ferry Huberts
  2009-04-10 19:33 ` [PATCH v3 2/2] Ensure consistent usage of mergetool.keepBackup in git Ferry Huberts
  0 siblings, 1 reply; 7+ messages in thread
From: Ferry Huberts @ 2009-04-10 19:33 UTC (permalink / raw)
  To: git
  Cc: Junio C Hamano, Shawn O. Pearce, David Aguilar, Markus Heidelberg,
	Charles Bailey, Ferry Huberts

In several places merge.keepBackup is used i.s.o.
mergetool.keepBackup. This patch makes it all
consistent for git-gui

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
---
Based on pu

Shawn, I think you said you already applied this, I'm still resending to keep
the series complete.

 git-gui/git-gui.sh        |    2 +-
 git-gui/lib/mergetool.tcl |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh
index e018e07..e4e643a 100755
--- a/git-gui/git-gui.sh
+++ b/git-gui/git-gui.sh
@@ -699,7 +699,7 @@ proc apply_config {} {
 
 set default_config(branch.autosetupmerge) true
 set default_config(merge.tool) {}
-set default_config(merge.keepbackup) true
+set default_config(mergetool.keepbackup) true
 set default_config(merge.diffstat) true
 set default_config(merge.summary) false
 set default_config(merge.verbosity) 2
diff --git a/git-gui/lib/mergetool.tcl b/git-gui/lib/mergetool.tcl
index eb2b4b5..b7263b3 100644
--- a/git-gui/lib/mergetool.tcl
+++ b/git-gui/lib/mergetool.tcl
@@ -382,7 +382,7 @@ proc merge_tool_finish {fd} {
 		delete_temp_files $mtool_tmpfiles
 		ui_status [mc "Merge tool failed."]
 	} else {
-		if {[is_config_true merge.keepbackup]} {
+		if {[is_config_true mergetool.keepbackup]} {
 			file rename -force -- $backup "$mtool_target.orig"
 		}
 
-- 
1.6.0.6

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

end of thread, other threads:[~2009-04-12  7:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-10 19:33 [PATCH v3 1/2] Ensure consistent usage of mergetool.keepBackup in git-gui Ferry Huberts
2009-04-10 19:33 ` [PATCH v3 2/2] Ensure consistent usage of mergetool.keepBackup in git Ferry Huberts
2009-04-11 19:23   ` Junio C Hamano
2009-04-11 19:41     ` Ferry Huberts (Pelagic)
2009-04-11 19:44       ` Ferry Huberts (Pelagic)
2009-04-11 20:19         ` Junio C Hamano
2009-04-12  7:04           ` Ferry Huberts (Pelagic)

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).