Merge branch 'nd/struct-pathspec'
* nd/struct-pathspec:
pathspec: rename per-item field has_wildcard to use_wildcard
Improve tree_entry_interesting() handling code
Convert read_tree{,_recursive} to support struct pathspec
Reimplement read_tree_recursive() using tree_entry_interesting()
This commit is contained in:
@ -79,7 +79,10 @@ static int update_some(const unsigned char *sha1, const char *base, int baselen,
|
||||
|
||||
static int read_tree_some(struct tree *tree, const char **pathspec)
|
||||
{
|
||||
read_tree_recursive(tree, "", 0, 0, pathspec, update_some, NULL);
|
||||
struct pathspec ps;
|
||||
init_pathspec(&ps, pathspec);
|
||||
read_tree_recursive(tree, "", 0, 0, &ps, update_some, NULL);
|
||||
free_pathspec(&ps);
|
||||
|
||||
/* update the index with the given tree's info
|
||||
* for all args, expanding wildcards, and exit
|
||||
|
||||
Reference in New Issue
Block a user