diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2009-02-19 20:10:53 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-19 22:47:39 -0800 |
commit | 024aa7d8d5114f76e616a0ed8ddcf3b463ff2c14 (patch) | |
tree | 5be882a523e0185a8114e44689469d85ffa3eca9 /mailmap.h | |
parent | Introduce the function strip_path_suffix() (diff) | |
download | tgif-024aa7d8d5114f76e616a0ed8ddcf3b463ff2c14.tar.xz |
system_path(): simplify using strip_path_suffix(), and add suffix "git"
At least for the author of this patch, the logic in system_path() was
too hard to understand. Using the function strip_path_suffix() documents
the idea of the code better.
The real change is to add the suffix "git", so that a runtime prefix will
be computed correctly even when the executable was called in /git/ as is
the case in msysGit (Windows insists to search the current directory
before the PATH when looking for an executable).
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailmap.h')
0 files changed, 0 insertions, 0 deletions