is_ntfs_dotgit: match other .git files
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 52b91f5b64146e1b6c7c93aa5054a7aca6303b42..041c0fb2611152354ec3d2346a001f75cd79a830 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -1188,7 +1188,23 @@ int normalize_path_copy(char *dst, const char *src);
 int longest_ancestor_length(const char *path, struct string_list *prefixes);
 char *strip_path_suffix(const char *path, const char *suffix);
 int daemon_avoid_alias(const char *path);
-extern int is_ntfs_dotgit(const char *name);
+
+/*
+ * These functions match their is_hfs_dotgit() counterparts; see utf8.h for
+ * details.
+ */
+int is_ntfs_dotgit(const char *name);
+int is_ntfs_dotgitmodules(const char *name);
+int is_ntfs_dotgitignore(const char *name);
+int is_ntfs_dotgitattributes(const char *name);
+
+/*
+ * Returns true iff "str" could be confused as a command-line option when
+ * passed to a sub-program like "ssh". Note that this has nothing to do with
+ * shell-quoting, which should be handled separately; we're assuming here that
+ * the string makes it verbatim to the sub-program.
+ */
+int looks_like_command_line_option(const char *str);
 
 /**
  * Return a newly allocated string with the evaluation of