Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t0027: combinations of core.autocrlf, core.eol and text
[gitweb.git]
/
git-compat-util.h
diff --git
a/git-compat-util.h
b/git-compat-util.h
index 7849d314051a1de351c9c985516135397042a091..b6f03b36dc762b891e77a5ca44e7ca5f270c5af9 100644
(file)
--- a/
git-compat-util.h
+++ b/
git-compat-util.h
@@
-267,6
+267,10
@@
extern char *gitbasename(char *);
#define has_dos_drive_prefix(path) 0
#endif
+#ifndef offset_1st_component
+#define offset_1st_component(path) (is_dir_sep((path)[0]))
+#endif
+
#ifndef is_dir_sep
#define is_dir_sep(c) ((c) == '/')
#endif