run-command: expose is_executable function
commit38124a40e480c1717326b7bc27bcbca758de908e
authorBrandon Williams <bmwill@google.com>
Tue, 25 Apr 2017 23:46:59 +0000 (25 16:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Apr 2017 01:45:29 +0000 (25 18:45 -0700)
treece31606c4c21865813559aa1315dc4e13d111be4
parent45afb1ca9c28855096c94926e5b16dfbcde7381f
run-command: expose is_executable function

Move the logic for 'is_executable()' from help.c to run_command.c and
expose it so that callers from outside help.c can access the function.
This is to enable run-command to be able to query if a file is
executable in a future patch.

Signed-off-by: Brandon Williams <bmwill@google.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c
run-command.c
run-command.h