Merge tag 'v2.8.6' into maint-2.9
[gitweb.git] / path.c
diff --git a/path.c b/path.c
index 17551c483476050325114b8521f2960707855c59..0778ff03f9d86275eac43e217f3da3e7d0dbb3f6 100644 (file)
--- a/path.c
+++ b/path.c
@@ -1222,6 +1222,11 @@ int is_ntfs_dotgit(const char *name)
                }
 }
 
+int looks_like_command_line_option(const char *str)
+{
+       return str && str[0] == '-';
+}
+
 char *xdg_config_home(const char *filename)
 {
        const char *home, *config_home;