[PATCH v2 0/2] RUNTIME_PREFIX enhancements
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 19, 2009, 19:10 UTC
- Message-ID
- <cover.1235070304u.git.johannes.schindelin@gmx.de>
- In-Reply-To
- <499C63E7.5040306@kdbg.org>
The idea is to simplify the RUNTIME_PREFIX code, and to make Git handle the case where the binary was found in $ROOT/git/, too.
Changes since v1:
- changed the signature of strip_path_suffix() as suggested by Hannes:
char *strip_path_suffix(const char *path, const char *suffix)
- added a test to test-path-utils
Johannes Schindelin (2):
Introduce the function strip_path_suffix()
system_path(): simplify using strip_path_suffix(), and add suffix
"git"cache.h | 1 + exec_cmd.c | 33 ++++----------------------------- path.c | 32 ++++++++++++++++++++++++++++++++ t/t0060-path-utils.sh | 4 ++++ test-path-utils.c | 6 ++++++ 5 files changed, 47 insertions(+), 29 deletions(-)