]> git.ipfire.org Git - thirdparty/git.git/blobdiff - pathspec.h
Merge branch '2.16' of https://github.com/ChrisADR/git-po
[thirdparty/git.git] / pathspec.h
index 60e6500401e687bc0d764c38c5d8b4928b7bfde8..099a170c2ef6eb01bee98c7ebf638f34655fda86 100644 (file)
@@ -24,6 +24,7 @@ struct pathspec {
        int nr;
        unsigned int has_wildcard:1;
        unsigned int recursive:1;
+       unsigned int recurse_submodules:1;
        unsigned magic;
        int max_depth;
        struct pathspec_item {
@@ -70,6 +71,13 @@ struct pathspec {
  */
 #define PATHSPEC_LITERAL_PATH (1<<6)
 
+/*
+ * Given command line arguments and a prefix, convert the input to
+ * pathspec. die() if any magic in magic_mask is used.
+ *
+ * Any arguments used are copied. It is safe for the caller to modify
+ * or free 'prefix' and 'args' after calling this function.
+ */
 extern void parse_pathspec(struct pathspec *pathspec,
                           unsigned magic_mask,
                           unsigned flags,