summaryrefslogtreecommitdiff
path: root/builtin/ls-files.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-04-05 16:30:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-04-05 16:30:36 (GMT)
commit33e0f62ba981ebfdcab8c9fb6d2935712a7b9d41 (patch)
tree66e6704cb6ff05057c899819b40001d0803dfabb /builtin/ls-files.c
parent97d0b74a49f0c81c3f9673c1a17721ac0624c3df (diff)
downloadgit-33e0f62ba981ebfdcab8c9fb6d2935712a7b9d41.zip
git-33e0f62ba981ebfdcab8c9fb6d2935712a7b9d41.tar.gz
git-33e0f62ba981ebfdcab8c9fb6d2935712a7b9d41.tar.bz2
pathspec: rename per-item field has_wildcard to use_wildcard
As the point of the last change is to allow use of strings as literals no matter what characters are in them, "has_wildcard" does not match what we use this field for anymore. It is used to decide if the wildcard matching should be used, so rename it to match the usage better. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/ls-files.c')
-rw-r--r--builtin/ls-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/ls-files.c b/builtin/ls-files.c
index 199af46..1570123 100644
--- a/builtin/ls-files.c
+++ b/builtin/ls-files.c
@@ -361,7 +361,7 @@ void overlay_tree_on_cache(const char *tree_name, const char *prefix)
matchbuf[0] = prefix;
matchbuf[1] = NULL;
init_pathspec(&pathspec, matchbuf);
- pathspec.items[0].has_wildcard = 0;
+ pathspec.items[0].use_wildcard = 0;
} else
init_pathspec(&pathspec, NULL);
if (read_tree(tree, 1, &pathspec))