Re: [PATCH 1/5] difftool: Simplify print_tool_help()
- From
Tim Henigan <tim.henigan@gmail.com>
- Date
- Jul 24, 2012, 12:43 UTC
- Message-ID
- <CAFouetjhGChULHa-Ax9oR--TccyEBnqn=UATbMpJxcdm3AOE1w@mail.gmail.com>
- In-Reply-To
- <1343014940-16439-1-git-send-email-davvid@gmail.com>
On Sun, Jul 22, 2012 at 11:42 PM, David Aguilar <davvid@gmail.com> wrote:
> Eliminate a global variable and File::Find usage by building upon > basename() and glob() instead.
glob was used in an early revision of the patch that led to bf73fc2 (difftool: print list of valid tools with '--tool-help') as well [1]. However, if the path to git or the path under 'mergetools' includes spaces, glob fails. To work around the problem, File::Find was used instead [2].
Does this implementation handle that case? I'm sorry, but I haven't had time to apply and test myself.
[1]: http://thread.gmane.org/gmane.comp.version-control.git/193233/focus=193925 [2]: http://thread.gmane.org/gmane.comp.version-control.git/194158