Skip to content

mergetool-lib improvements for --tool-help

David Aguilar git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7git-mergetool: move show_tool_help to mergetool--libgit-mergetool--lib.sh git-mergetool.sh+37 -370 replies
2/7git-mergetool: remove redundant assignmentgit-mergetool--lib.sh+0 -10 replies
3/7git-mergetool: don't hardcode 'mergetool' in show_tool_helpgit-mergetool--lib.sh+4 -20 replies
4/7git-difftool: use git-mergetool--lib for "--tool-help"git-difftool.perl+7 -480 replies
5/7mergetools/vim: Remove redundant diff commandmergetools/vim+2 -100 replies
6/7mergetools: Fix difftool/mergetool --tool-help listing for vimgit-mergetool--lib.sh mergetools/gvimdiff mergetools/gvimdiff2 +2 more+4 -87 replies
7/7mergetool--lib: Improve show_tool_help() outputgit-mergetool--lib.sh+21 -515 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] mergetool-lib improvements for --tool-help

I ran with John's idea and simplified a few more things so that the --tool-help output shows the correct results.

My final commit is dependent on John's commits but the other two could be picked up independently since they are general improvements.

This does add a few symlinks to the repo for the sake of simplicity; I'm not sure if this presents a problem for folks on other platforms.

The replacement of vim with vimdiff and symlinks simplifies things so that we can later auto-generate the list-of-all-tools for use by Documentation/. This was not previously possible due to the special-case for the vim tools which this series eliminates.

David Aguilar (3):
mergetools/vim: Remove redundant diff command
mergetools: Fix difftool/mergetool --tool-help listing for vim
mergetool--lib: Improve show_tool_help() output

John Keeping (4):
git-mergetool: move show_tool_help to mergetool--lib
git-mergetool: remove redundant assignment
git-mergetool: don't hardcode 'mergetool' in show_tool_help
git-difftool: use git-mergetool--lib for "--tool-help"

 git-difftool.perl           | 55 +++++----------------------------------
 git-mergetool--lib.sh       | 63 +++++++++++++++++++++++++++++++++++++++------
 git-mergetool.sh            | 37 --------------------------
 mergetools/gvimdiff         |  1 +
 mergetools/gvimdiff2        |  1 +
 mergetools/{vim => vimdiff} | 12 ++-------
 mergetools/vimdiff2         |  1 +
 7 files changed, 67 insertions(+), 103 deletions(-)
 create mode 120000 mergetools/gvimdiff
 create mode 120000 mergetools/gvimdiff2
 rename mergetools/{vim => vimdiff} (68%)
 create mode 120000 mergetools/vimdiff2
Signature · 1 line
1.8.1.1.367.g22b1720.dirty