Skip to content

Commit

Permalink
git-gui: Ensure consistent usage of mergetool.keepBackup
Browse files Browse the repository at this point in the history
In several places merge.keepBackup is used i.s.o.
mergetool.keepBackup. This patch makes it all
consistent.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Ferry Huberts authored and Shawn O. Pearce committed Apr 8, 2009
1 parent 8052e78 commit fb25092
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/mergetool.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit fb25092

Please sign in to comment.