Re: [PATCH] Make sure to use Araxis' "compare" and not e.g. ImageMagick's
- From
Sebastian Schuberth <sschuberth@gmail.com>
- Date
- Jul 23, 2012, 22:39 UTC
- Message-ID
- <CAHGBnuOXNb5NKB-aiSmciU7OQaGm_T-cn4JUSj5yS3bVVFiBUw@mail.gmail.com>
- In-Reply-To
- <7v629ejexo.fsf@alter.siamese.dyndns.org>
On Tue, Jul 24, 2012 at 12:22 AM, Junio C Hamano <gitster@pobox.com> wrote:
> On the other hand, if the user has bought and installed Araxis, but > we incorrectly identify it as unusable, the user has wasted good > money and there is no easy recourse as far as I can see in your > patch.
Agreed.
Show 7 quoted lines
> If we limit the problem space by special casing Windows installation > (e.g. check "uname -s" or something), would it make the problem > easier to solve? Perhaps it is much more likely that the path the > program is installed in can be safely identified with a call to > "type --path compare" (bash is the only shell shipped in msysgit, > isn't it?), and its output is likely to contain "/Program Files/Araxis/" > as a substring, or something?
Yes, I could come up with basically a variant of my first version of the patch that is limited to Windows only and uses "type --path" instead of "which", but then again this is too non-generic for my taste. Moreover, as I'm also using Mac OS X, I'd be interested in a solution that works there, too.
I don't see a good (read generic and concise) solution to the issue. I think we should just drop my patch and not waste all of our time on it any more.
-- Sebastian Schuberth