remote-curl: remove spurious period
[gitweb.git] / path.c
diff --git a/path.c b/path.c
index 9bfaeda2071636ec8a5a5ee32491494f5f83211c..6d4b007f4a9e7fad19cb8b87d8cde1bfc5f85b9e 100644 (file)
--- a/path.c
+++ b/path.c
@@ -1225,6 +1225,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;