Revision cdc0c0f52075e67be432807add1879a0799df583 authored by Junio C Hamano on 08 November 2013, 20:01:58 UTC, committed by Junio C Hamano on 08 November 2013, 20:01:58 UTC
The interaction between use of Perl in our test suite and NO_PERL has been clarified a bit. * jn/test-prereq-perl-doc: t/README: tests can use perl even with NO_PERL
basename.c
#include "../git-compat-util.h"
/* Adapted from libiberty's basename.c. */
char *gitbasename (char *path)
{
const char *base;
/* Skip over the disk name in MSDOS pathnames. */
if (has_dos_drive_prefix(path))
path += 2;
for (base = path; *path; path++) {
if (is_dir_sep(*path))
base = path + 1;
}
return (char *)base;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...