repository.c: replace hold_locked_index() with repo_hold_locked_index()
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 12 Jan 2019 02:13:24 +0000 (09:13 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jan 2019 20:13:04 +0000 (12:13 -0800)
commit3a95f31d1cdc93fa4f926c6537f84186edd85ca9
tree102d6623808b54f676dcbde75b1ed28705358f60
parent1d18d7581cf1ce45314b7ed58e52d5cc73b2e7a7
repository.c: replace hold_locked_index() with repo_hold_locked_index()

hold_locked_index() assumes the index path at $GIT_DIR/index. This is
not good for places that take an arbitrary index_state instead of
the_index, which is basically everywhere except builtin/.

Replace it with repo_hold_locked_index(). hold_locked_index() remains
as a wrapper around repo_hold_locked_index() to reduce changes in builtin/

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.c
cache.h
merge-recursive.c
merge.c
read-cache.c
repository.c
repository.h
rerere.c
sequencer.c
wt-status.c