diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2016-01-12 08:57:30 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-01-12 10:40:27 -0800 |
commit | 61725be349b44f15b0239182c859553d5c547ba0 (patch) | |
tree | f85a67129159f2f0288ab7d6c21594ee6a9a91be /test-mergesort.c | |
parent | Refactor skipping DOS drive prefixes (diff) | |
download | tgif-61725be349b44f15b0239182c859553d5c547ba0.tar.xz |
compat/basename: make basename() conform to POSIX
According to POSIX, basename("/path/") should return "path", not
"path/". Likewise, basename(NULL) and basename("") should both
return "." to conform.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-mergesort.c')
0 files changed, 0 insertions, 0 deletions