[PATCH v2 0/2] RUNTIME_PREFIX enhancements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux