-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let set diff-highlight=true
work when the diff-highlight executable is not on $PATH
#662
Conversation
fbe85da
to
abb6af7
Compare
abb6af7
to
4114253
Compare
I played around with this one and I really like the idea how I'd prefer that the lookup does an |
4114253
to
8104387
Compare
Manually finding the location would also have the advantage of being able to invoke |
22ee909
to
6a0e167
Compare
set diff-highlight=true
work when the diff-highlight executable is not on $PATHset diff-highlight=true
work when the diff-highlight executable is not on $PATH
82b46dd
to
26a8f6e
Compare
Revised, with probably too much refactor. Willing to squash as always.
Handling of |
set diff-highlight=true
work when the diff-highlight executable is not on $PATHset diff-highlight=true
work when the diff-highlight executable is not on $PATH
d2b1405
to
e9df2cc
Compare
valgrind doesn't like the final test case |
7bf0bce
to
ab712c3
Compare
ab712c3
to
bba9ef0
Compare
* diff-highlight is probably not on the user's $PATH in most installs * find it relative to git --exec-path * also rescue the case where diff-highlight isn't a prepared executable
bba9ef0
to
f570546
Compare
valgrind issue addressed |
… is not on $PATH (jonas#662) * recast expand_path as path_expand * recast SIZEOF_CMD as SIZEOF_MED_STR * define _PATH_DEFPATH, conditionally incl paths.h * path_search() generalized "which" * stub apps.c for external applications * let set diff-highlight=true work when not on $PATH * diff-highlight is probably not on the user's $PATH in most installs * find it relative to git --exec-path * also rescue the case where diff-highlight isn't a prepared executable
diff-highlight
lives under contrib and is probably not on the user's$PATH
in most installs