summaryrefslogtreecommitdiff
path: root/pathspec.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-07-14 08:35:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-07-15 17:56:06 (GMT)
commitd2ce1331953e9f4306e00f5edf3a6ce6e3330e9e (patch)
tree40d58e49adae53d99dbd55e4be6785b368e5a73b /pathspec.h
parent87323bdace47c3d464a783f48b16617720e8eeee (diff)
downloadgit-d2ce1331953e9f4306e00f5edf3a6ce6e3330e9e.zip
git-d2ce1331953e9f4306e00f5edf3a6ce6e3330e9e.tar.gz
git-d2ce1331953e9f4306e00f5edf3a6ce6e3330e9e.tar.bz2
parse_pathspec: save original pathspec for reporting
We usually use pathspec_item's match field for pathspec error reporting. However "match" (or "raw") does not show the magic part, which will play more important role later on. Preserve exact user input for reporting. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pathspec.h')
-rw-r--r--pathspec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pathspec.h b/pathspec.h
index 937ec91..cc5841b 100644
--- a/pathspec.h
+++ b/pathspec.h
@@ -16,6 +16,7 @@ struct pathspec {
int max_depth;
struct pathspec_item {
const char *match;
+ const char *original;
unsigned magic;
int len;
int nowildcard_len;