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:
Elijah Newren
2023-02-27 15:28:20 +00:00
committed by Junio C Hamano
parent 1ca13dd3ca
commit f297424a3a
2 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,7 @@ struct unpack_trees_options {
int head_idx;
struct cache_entry *df_conflict_entry;
struct cache_entry *df_conflict_entry; /* output only */
void *unpack_data;
struct index_state *dst_index;