]> git.ipfire.org Git - thirdparty/git.git/commit
unpack-trees: allow check_updates() to work on a different index
authorElijah Newren <newren@gmail.com>
Fri, 27 Mar 2020 00:48:49 +0000 (00:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Mar 2020 18:33:29 +0000 (11:33 -0700)
commitb0a5a12a60393237f98ec4b0fcf2b7d3c3232a2a
tree8f25177e052ac6448945433761908ac2476b4b19
parent72064ee578a59d4511cab17496c5246af02397f3
unpack-trees: allow check_updates() to work on a different index

check_updates() previously assumed it was working on o->result.  We want
to use this function in combination with a different index_state, so
take the intended index_state as a parameter.

Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c