remove diff_tree_{setup,release}_paths
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
827f4d6c21
commit
bd1928df1d
@ -1305,7 +1305,7 @@ void diff_tree_combined(const unsigned char *sha1,
|
||||
int i, num_paths, needsep, show_log_first, num_parent = parents->nr;
|
||||
|
||||
diffopts = *opt;
|
||||
diff_tree_setup_paths(diffopts.pathspec.raw, &diffopts);
|
||||
copy_pathspec(&diffopts.pathspec, &opt->pathspec);
|
||||
diffopts.output_format = DIFF_FORMAT_NO_OUTPUT;
|
||||
DIFF_OPT_SET(&diffopts, RECURSIVE);
|
||||
DIFF_OPT_CLR(&diffopts, ALLOW_EXTERNAL);
|
||||
@ -1377,7 +1377,7 @@ void diff_tree_combined(const unsigned char *sha1,
|
||||
free(tmp);
|
||||
}
|
||||
|
||||
diff_tree_release_paths(&diffopts);
|
||||
free_pathspec(&diffopts.pathspec);
|
||||
}
|
||||
|
||||
void diff_tree_combined_merge(const struct commit *commit, int dense,
|
||||
|
||||
Reference in New Issue
Block a user