path: root/builtin/ls-tree.c
diff options
authorJunio C Hamano <>2011-04-05 16:30:36 (GMT)
committerJunio C Hamano <>2011-04-05 16:30:36 (GMT)
commit33e0f62ba981ebfdcab8c9fb6d2935712a7b9d41 (patch)
tree66e6704cb6ff05057c899819b40001d0803dfabb /builtin/ls-tree.c
parent97d0b74a49f0c81c3f9673c1a17721ac0624c3df (diff)
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 <>
Diffstat (limited to 'builtin/ls-tree.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/ls-tree.c b/builtin/ls-tree.c
index 4290723..f08c5b0 100644
--- a/builtin/ls-tree.c
+++ b/builtin/ls-tree.c
@@ -168,7 +168,8 @@ int cmd_ls_tree(int argc, const char **argv, const char *prefix)
init_pathspec(&pathspec, get_pathspec(prefix, argv + 1));
for (i = 0; i <; i++)
- pathspec.items[i].has_wildcard = 0;
+ pathspec.items[i].use_wildcard = 0;
+ pathspec.has_wildcard = 0;
tree = parse_tree_indirect(sha1);
if (!tree)
die("not a tree object");