diff: get rid of redundant 'dense' argument
Get rid of 'dense' argument that is redundant for every function that has 'struct rev_info *rev' argument as well, as the value of 'dense' passed is always taken from 'rev->dense_combined_merges' field. The only place where this was not the case is in 'submodule.c' where 'diff_tree_combined_merge()' was called with '1' for 'dense' argument. However, at that call the 'revs' instance used is local to the function, and we now just set 'revs->dense_combined_merges' to 1 in this local instance. Signed-off-by: Sergey Organov <sorganov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
47ae905ffb
commit
d01141de5a
@ -885,7 +885,7 @@ int log_tree_diff_flush(struct rev_info *opt)
|
||||
|
||||
static int do_diff_combined(struct rev_info *opt, struct commit *commit)
|
||||
{
|
||||
diff_tree_combined_merge(commit, opt->dense_combined_merges, opt);
|
||||
diff_tree_combined_merge(commit, opt);
|
||||
return !opt->loginfo;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user