summaryrefslogtreecommitdiff
path: root/pathspec.h
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-03-03 15:16:21 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-03 15:16:21 +0900
commite3b7705207b3e9c661026e43b95cfb2f40d7e6f2 (patch)
tree8b454ead9d5277e6212d03dcd92aacc7c96a574f /pathspec.h
parentd6e11a6ebb61d22349f15df790fc8fe080ad5b52 (diff)
downloadgit-e3b7705207b3e9c661026e43b95cfb2f40d7e6f2.tar.gz
git-e3b7705207b3e9c661026e43b95cfb2f40d7e6f2.tar.bz2
git-e3b7705207b3e9c661026e43b95cfb2f40d7e6f2.zip
Imported Upstream version 2.15.0upstream/2.15.0
Diffstat (limited to 'pathspec.h')
-rw-r--r--pathspec.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pathspec.h b/pathspec.h
index 60e65004..6420d108 100644
--- a/pathspec.h
+++ b/pathspec.h
@@ -70,6 +70,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,