1 #include "../git-compat-util.h"
3 /* Adapted from libiberty's basename.c. */
4 char *gitbasename (char *path)
9 skip_dos_drive_prefix(&path);
14 for (base = path; *path; path++) {
15 if (!is_dir_sep(*path))
19 } while (is_dir_sep(*path));
23 while (--path != base && is_dir_sep(*path))