git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 1/2] Ensure consistent usage of mergetool.keepBackup in git

From
Ferry Huberts <ferry.huberts@pelagic.nl>
Date
Apr 9, 2009, 15:45 UTC
Message-ID
<f6297e57a23dc3abac2fcedceb00cecde607de02.1239291673.git.ferry.huberts@pelagic.nl>
In-Reply-To
<20090409153033.GN23604@spearce.org>

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

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
---
 contrib/difftool/git-difftool.txt |    2 +-
 git-mergetool.sh                  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/difftool/git-difftool.txt b/contrib/difftool/git-difftool.txt
index 6e2610c..ca7482a 100644
--- a/contrib/difftool/git-difftool.txt
+++ b/contrib/difftool/git-difftool.txt
@@ -66,7 +66,7 @@ merge.tool::
 +
 See the `--tool=<tool>` option above for more details.
 
-merge.keepBackup::
+mergetool.keepBackup::
 	The original, unedited file content can be saved to a file with
 	a `.orig` extension.  Defaults to `true` (i.e. keep the backup files).
 
diff --git a/git-mergetool.sh b/git-mergetool.sh
index 87fa88a..1455bd9 100755
--- a/git-mergetool.sh
+++ b/git-mergetool.sh
@@ -430,7 +430,7 @@ else
 
     init_merge_tool_path "$merge_tool"
 
-    merge_keep_backup="$(git config --bool merge.keepBackup || echo true)"
+    merge_keep_backup="$(git config --bool mergetool.keepBackup || echo true)"
     merge_keep_temporaries="$(git config --bool mergetool.keepTemporaries || echo false)"
 
     if test -z "$merge_tool_cmd" && ! type "$merge_tool_path" > /dev/null 2>&1; then
-- 
1.6.0.6
Next: Ferry Huberts
Message 1 of 9 in “Ensure consistent usage of mergetool.keepBackup in git”
  1. 1/2 Ensure consistent usage of mergetool.keepBackup in gitFerry Huberts, Apr 9, 2009
  2. 2/2 Ensure consistent usage of mergetool.keepBackup in git-guiFerry Huberts, Apr 9, 2009
  3. David AguilarApr 10, 2009
  4. Ferry Huberts (Pelagic)Apr 10, 2009
  5. David AguilarApr 10, 2009
  6. David AguilarApr 10, 2009
  7. Ferry Huberts (Pelagic)Apr 10, 2009
  8. Markus HeidelbergApr 10, 2009
  9. Charles BaileyApr 11, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.