unpack-trees: add usage notices around df_conflict_entry
Avoid making users believe they need to initialize df_conflict_entry to something (as happened with other output only fields before) with a quick comment and a small sanity check. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
1ca13dd3ca
commit
f297424a3a
@ -1876,6 +1876,8 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
|
||||
BUG("o->internal.dir is for internal use only");
|
||||
if (o->internal.pl)
|
||||
BUG("o->internal.pl is for internal use only");
|
||||
if (o->df_conflict_entry)
|
||||
BUG("o->df_conflict_entry is an output only field");
|
||||
|
||||
trace_performance_enter();
|
||||
trace2_region_enter("unpack_trees", "unpack_trees", the_repository);
|
||||
|
Reference in New Issue
Block a user