1 #include "../git-compat-util.h"
3 /* Adapted from libiberty's basename.c. */
4 char *gitbasename (char *path)
7 /* Skip over the disk name in MSDOS pathnames. */
8 if (has_dos_drive_prefix(path))
10 for (base = path; *path; path++) {
11 if (is_dir_sep(*path))