]> git.ipfire.org Git - thirdparty/git.git/blobdiff - cache.h
A Windows path starting with a backslash is absolute
[thirdparty/git.git] / cache.h
diff --git a/cache.h b/cache.h
index 342b4100f12d5a56262a13290c27298431e82325..9d3d92cf9e1c7989fd46b77c61fceb0375dbcc4c 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -715,7 +715,7 @@ extern char *expand_user_path(const char *path);
 char *enter_repo(char *path, int strict);
 static inline int is_absolute_path(const char *path)
 {
-       return path[0] == '/' || has_dos_drive_prefix(path);
+       return is_dir_sep(path[0]) || has_dos_drive_prefix(path);
 }
 int is_directory(const char *);
 const char *make_absolute_path(const char *path);
@@ -946,6 +946,7 @@ extern struct ref *find_ref_by_name(const struct ref *list, const char *name);
 extern char *git_getpass(const char *prompt);
 extern struct child_process *git_connect(int fd[2], const char *url, const char *prog, int flags);
 extern int finish_connect(struct child_process *conn);
+extern int git_connection_is_socket(struct child_process *conn);
 extern int path_match(const char *path, int nr, char **match);
 struct extra_have_objects {
        int nr, alloc;