apply.c: remove implicit dependency on the_index
authorNguyễn Thái Ngọc Duy <redacted>
Mon, 13 Aug 2018 16:14:40 +0000 (18:14 +0200)
committerJunio C Hamano <redacted>
Mon, 13 Aug 2018 21:14:44 +0000 (14:14 -0700)
commit1b5c6c1e5309e8be24ad4958baa2553a003ee45e
tree97807b2c13e05f5ea8acb5d23ca4485a8345eb2c
parent82ea77eca7af238f1ee65f5cbc945a01e16ee97a
apply.c: remove implicit dependency on the_index

Use apply_state->repo->index instead of the_index (in most cases,
unless we need to use a temporary index in some functions). Let the
callers (am and apply) tell us what to use, instead of always assuming
to operate on the_index.

Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
apply.c
git clone https://git.99rst.org/PROJECT