Skip to contentSkip to conversation

Documentation/difftool: add deltawalker to list of valid diff tools

PATCH In review Tim Henigan 2 participants 4 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation/difftool: add deltawalker to list of valid diff tools

deltawalker has been supported since 284a126c3ef3, but was not added to the list of valid diff tools reported by 'git difftool --help'.

---

The list of valid tools seems prone to error. Right now, there is nothing that tells people to update this documentation when new config files are added to 'mergetools'. Should I add a README to 'mergetools' with instructions to update this file? Or would it be better to replace the list in the help string with a more general statement like "<tool> must match one of the files located in $(git --exec-path)/mergetools"?

 Documentation/git-difftool.txt |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/git-difftool.txt +3 -2
index 19d473c..fe38f66 100644
@@ -32,8 +32,9 @@ OPTIONS
 --tool=<tool>::
 	Use the diff tool specified by <tool>.
 	Valid diff tools are:
-	araxis, bc3, diffuse, emerge, ecmerge, gvimdiff, kdiff3,
-	kompare, meld, opendiff, p4merge, tkdiff, vimdiff and xxdiff.
+	araxis, bc3, deltawalker, diffuse, emerge, ecmerge, gvimdiff,
+	kdiff3,	kompare, meld, opendiff, p4merge, tkdiff, vimdiff and
+	xxdiff.
 +
 If a diff tool is not specified, 'git difftool'
 will use the configuration variable `diff.tool`.  If the
Signature · 1 line
1.7.10.rc1
#1 lore raw
Quoted 6 lines · Tim Henigan

The list of valid tools seems prone to error. Right now, there is nothing that tells people to update this documentation when new config files are added to 'mergetools'. Should I add a README to 'mergetools' with instructions to update this file? Or would it be better to replace the list in the help string with a more general statement like "<tool> must match one of the files located in $(git --exec-path)/mergetools"?

I would prefer to rip most of them out from this list in the documentation, and refer people to ask the installed version of "git difftool" to list them. After bc7a96a (mergetool--lib: Refactor tools into separate files, 2011-08-18), that should be the most sensible option. I.e.

	--tool=<tool>::
		Use the diff tool specified by <tool>.  Valid diff tools
                include emerge, kompare, meld, and vimdiff; for complete
                list, run 'git difftool --tool-help'

or something.

#2 lore raw
Quoted 15 lines · Junio C Hamano
Quoted 6 lines · Tim Henigan

The list of valid tools seems prone to error. Right now, there is nothing that tells people to update this documentation when new config files are added to 'mergetools'. Should I add a README to 'mergetools' with instructions to update this file? Or would it be better to replace the list in the help string with a more general statement like "<tool> must match one of the files located in $(git --exec-path)/mergetools"?

I would prefer to rip most of them out from this list in the documentation, and refer people to ask the installed version of "git difftool" to list them. After bc7a96a (mergetool--lib: Refactor tools into separate files, 2011-08-18), that should be the most sensible option. I.e.

Quoted 6 lines
	--tool=<tool>::
		Use the diff tool specified by <tool>.  Valid diff tools
                include emerge, kompare, meld, and vimdiff; for complete
                list, run 'git difftool --tool-help'

or something.

The above is the longer-term direction. I'll apply your patch to add another new tool to the existing list for 1.7.10.

#3 lore raw
Quoted 3 lines · Junio C Hamano

The above is the longer-term direction. I'll apply your patch to add another new tool to the existing list for 1.7.10.

I am almost done with a patch to do this...I was planning to send it in the next few minutes.

Thanks,
Tim