]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-compat-util.h
Merge branch 'dl/merge-autostash-rebase-quit-fix'
[thirdparty/git.git] / git-compat-util.h
index aed0b5d4f9028a5ae38e8676ec2d1c3a63dfdc97..8ba576e81e3e52843cc84350978a26df8e3344e7 100644 (file)
@@ -389,6 +389,14 @@ static inline char *git_find_last_dir_sep(const char *path)
 #define find_last_dir_sep git_find_last_dir_sep
 #endif
 
+#ifndef has_dir_sep
+static inline int git_has_dir_sep(const char *path)
+{
+       return !!strchr(path, '/');
+}
+#define has_dir_sep(path) git_has_dir_sep(path)
+#endif
+
 #ifndef query_user_email
 #define query_user_email() NULL
 #endif