remove init_pathspec() in favor of parse_pathspec()
While at there, move free_pathspec() to pathspec.c Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
bd1928df1d
commit
9a08727443
@ -297,7 +297,7 @@ static int get_files_dirs(struct merge_options *o, struct tree *tree)
|
||||
{
|
||||
int n;
|
||||
struct pathspec match_all;
|
||||
init_pathspec(&match_all, NULL);
|
||||
memset(&match_all, 0, sizeof(match_all));
|
||||
if (read_tree_recursive(tree, "", 0, 0, &match_all, save_files_dirs, o))
|
||||
return 0;
|
||||
n = o->current_file_set.nr + o->current_directory_set.nr;
|
||||
|
||||
Reference in New Issue
Block a user