fsmonitor: add a sample integration script for Watchman
[gitweb.git] / path.c
diff --git a/path.c b/path.c
index e485f9f93181778de3acfe3cd4b6811ec82c7940..b533ec938dd18320beb533969b0763992d4d3a85 100644 (file)
--- a/path.c
+++ b/path.c
@@ -9,6 +9,7 @@
 #include "worktree.h"
 #include "submodule-config.h"
 #include "path.h"
+#include "packfile.h"
 
 static int get_st_mode_bits(const char *path, int *mode)
 {
@@ -1321,6 +1322,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;