diff options
author | Fernando Ramos <greenfoo@u92.eu> | 2022-03-30 21:19:09 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-04-04 00:10:04 +0200 |
commit | 980145f7470e20826ca22d7343494712eda9c81d (patch) | |
tree | f22fa347b6fc89395a0185fe1fb0f7eca0822f55 /mergetools/winmerge | |
parent | vimdiff: add tool documentation (diff) | |
download | git-980145f7470e20826ca22d7343494712eda9c81d.tar.xz git-980145f7470e20826ca22d7343494712eda9c81d.zip |
mergetools: add description to all diff/merge tools
The output of `git mergetool --tool-help` and `git difftool --tool-help`
only showed the `alias` of each available merge/diff tool.
It is not always obvious what tool these `aliases` end up using (ex:
`opendiff` runs `FileMerge` and `bc` runs `Beyond Compare`).
This commit adds a short description to each of them to help the user
identify the `alias` they want.
Signed-off-by: Fernando Ramos <greenfoo@u92.eu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mergetools/winmerge')
-rw-r--r-- | mergetools/winmerge | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mergetools/winmerge b/mergetools/winmerge index 74d03259fd..36c72dde6e 100644 --- a/mergetools/winmerge +++ b/mergetools/winmerge @@ -3,6 +3,10 @@ diff_cmd () { return 0 } +diff_cmd_help () { + echo "Use WinMerge (requires a graphical session)" +} + merge_cmd () { # mergetool.winmerge.trustExitCode is implicitly false. # touch $BACKUP so that we can check_unchanged. @@ -13,3 +17,7 @@ merge_cmd () { translate_merge_tool_path() { mergetool_find_win32_cmd "WinMergeU.exe" "WinMerge" } + +merge_cmd_help () { + echo "Use WinMerge (requires a graphical session)" +} |