Skip to contentSkip to conversation

documentation fix: git difftool uses diff tools, not merge tools.

PATCH In review Thomas Hochstein 3 participants 3 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 documentation fix: git difftool uses diff tools, not merge tools.

Let the documentation for -t list valid *diff* tools, not valid *merge* tools.

---
 Documentation/git-difftool.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Documentation/git-difftool.txt +1 -1
index a03515f..19d473c 100644
@@ -31,7 +31,7 @@ OPTIONS
 -t <tool>::
 --tool=<tool>::
 	Use the diff tool specified by <tool>.
-	Valid merge tools are:
+	Valid diff tools are:
 	araxis, bc3, diffuse, emerge, ecmerge, gvimdiff, kdiff3,
 	kompare, meld, opendiff, p4merge, tkdiff, vimdiff and xxdiff.
 +
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 13 lines · Thomas Hochstein

Let the documentation for -t list valid *diff* tools, not valid *merge* tools.

---
 Documentation/git-difftool.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Documentation/git-difftool.txt +0 -0
index a03515f..19d473c 100644

Documentation/git-difftool.txt OPTIONS · line 37

Quoted 8 lines
Documentation/git-difftool.txt +1 -1
@@ -31,7 +31,7 @@ OPTIONS
 -t <tool>::
 --tool=<tool>::
 	Use the diff tool specified by <tool>.
-	Valid merge tools are:
+	Valid diff tools are:
 	araxis, bc3, diffuse, emerge, ecmerge, gvimdiff, kdiff3,
 	kompare, meld, opendiff, p4merge, tkdiff, vimdiff and xxdiff.
 +

The patch is obviously correct, and it is so trivial that there is no risk of breaking anything. It would even be OK for 1.7.7.X maintenance series.

But in the longer term, I suspect that we would want to drop this enumeration from the documentation, and instead give "--list-tools" option or something to the command. That way, we only need to keep the list of known tools in one place where it matters, namely, the command that knows about them.

David, what do you think?

The same comment applies to "git mergetool", I would think.

#2 lore raw
Quoted 33 lines · Junio C Hamano
Quoted 13 lines · Thomas Hochstein

Let the documentation for -t list valid *diff* tools, not valid *merge* tools.

---
 Documentation/git-difftool.txt |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
Documentation/git-difftool.txt +0 -0
index a03515f..19d473c 100644
@@ -31,7 +31,7 @@ OPTIONS
Quoted 8 lines

 -t <tool>::
 --tool=<tool>::
      Use the diff tool specified by <tool>.
-     Valid merge tools are:
+     Valid diff tools are:
      araxis, bc3, diffuse, emerge, ecmerge, gvimdiff, kdiff3, kompare, meld, opendiff, p4merge, tkdiff, vimdiff and xxdiff. +

The patch is obviously correct, and it is so trivial that there is no risk of breaking anything. It would even be OK for 1.7.7.X maintenance series.

But in the longer term, I suspect that we would want to drop this enumeration from the documentation, and instead give "--list-tools" option or something to the command. That way, we only need to keep the list of known tools in one place where it matters, namely, the command that knows about them.

Quoted 3 lines

David, what do you think?

The same comment applies to "git mergetool", I would think.

Exactly my thoughts.

Signature · 1 line
    David