summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-16 17:07:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-16 17:07:03 (GMT)
commitb83163643bd7459385003fa58ae049a31f2984cb (patch)
treeed048a2befb3b9d4f1a51175db7d2db939bb0b46 /git-compat-util.h
parent4a43d4f98a1a6a472ce1e87c64cb6df0d1653d02 (diff)
parentc2369bdf7ff082d588c4a4efe280bc4a483d0192 (diff)
downloadgit-b83163643bd7459385003fa58ae049a31f2984cb.zip
git-b83163643bd7459385003fa58ae049a31f2984cb.tar.gz
git-b83163643bd7459385003fa58ae049a31f2984cb.tar.bz2
Merge branch 'sk/windows-unc-path'
* sk/windows-unc-path: Windows: allow using UNC path for git repository
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 7849d31..b6f03b3 100644
--- 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