From: H.Merijn Brand Date: Tue, 28 Aug 2018 15:57:11 GMT Subject: Feature request: be able to pass arguments to difftool command Message-ID: <20180828175711.3a0aeacc@pc09.procura.nl> In short, I want to be able to do $ git difftool 5c5a -v2 where -v2 is passed to the tool invoked in the end. I'll elaborate on why ... Background. Some changes are not obvious to spot. One of the best examples I found is this one: https://github.com/hexchat/hexchat/commit/5c5aacd9da7d45dfc1644b87de9e2379a1102d6a $ git show 5c5a commit 5c5aacd9da7d45dfc1644b87de9e2379a1102d6a Author: Patrick Griffis Date: Wed Apr 4 19:21:53 2018 -0400 Fix another bad translation diff --git a/po/el.po b/po/el.po index 7d47ee1e..e54d62c1 100644 --- a/po/el.po +++ b/po/el.po @@ -1072,7 +1072,7 @@ msgstr "%C22*%O$t%C22$1%O: %C18$2%O κατά συνέχεια %C24$4%O από %C #: src/common/textevents.h:13 msgid "%C22*%O$tCannot join %C22$1 %O(%C20You are banned%O)." -msgstr "%C22*%O$tΑδυναμία εισαγωγής %C22$1 %O(%C20Είστε μπλοκαρισμένος%Ο)." +msgstr "%C22*%O$tΑδυναμία εισαγωγής %C22$1 %O(%C20Είστε μπλοκαρισμένος%O)." #: src/common/textevents.h:19 msgid "%C29*%O$tCapabilities acknowledged: %C29$2%O" I bet none of you is able to spot the change in that line, even if colored. I had a similar problem completely unrelated to git, and I wrote the "ccdiff" tool, to do horizontally colored diff. As mail (when used without HTML, as it ought to be used) is not apt to coloring, I added an option to show markers under the changed text. I then integrated the tool as much as possible into git $ cpan App::ccdiff $ git config --global diff.tool ccdiff $ git config --global difftool.prompt false $ git config --global difftool.ccdiff.cmd 'ccdiff --utf-8 -u $LOCAL $REMOTE' $ git difftool 5c5a~..5c5a --- /tmp/CXbTje_el.po Tue Aug 28 17:38:02 2018 +++ /tmp/8jrR7d_el.po Tue Aug 28 17:38:02 2018 1075,1075c1075,1075 #: src/common/textevents.h:13 msgid "%C22*%O$tCannot join %C22$1 %O(%C20You are banned%O)." -msgstr "%C22*%O$tΑδυναμία εισαγωγής %C22$1 %O(%C20Είστε μπλοκαρισμένος%Ο)." +msgstr "%C22*%O$tΑδυναμία εισαγωγής %C22$1 %O(%C20Είστε μπλοκαρισμένος%O)." #: src/common/textevents.h:19 msgid "%C29*%O$tCapabilities acknowledged: %C29$2%O" $ cat >~/bin/git-ccdiff <