]> git.ipfire.org Git - thirdparty/git.git/commit - exec-cmd.c
system_path: move RUNTIME_PREFIX to a sub-function
authorJeff King <peff@peff.net>
Wed, 6 Sep 2017 12:30:28 +0000 (08:30 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Sep 2017 00:41:11 +0000 (09:41 +0900)
commit39b2f6af6e009c2c087eeec293e98222eb396263
tree0c2f0fcf29fbca762aa8146ed9a06f2c9684474b
parent3d9c5b5c4461957fbbc0479e037990db04ebb740
system_path: move RUNTIME_PREFIX to a sub-function

The system_path() function has an #ifdef in the middle of
it. Let's move the conditional logic into a sub-function.
This isolates it more, which will make it easier to change
and add to.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
exec_cmd.c