]> git.ipfire.org Git - thirdparty/git.git/commit - rerere.c
read-cache.c: kill read_index()
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 12 Jan 2019 02:13:26 +0000 (09:13 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jan 2019 20:13:04 +0000 (12:13 -0800)
commite1ff0a32e48eb0f3e53970df3f941d183093ff5a
treeb9d9a617170b562f93a9d262443a8bc45834ed74
parentfb4a8464a6d7ba643a8ebdb3ad8e1e84f0a01b0a
read-cache.c: kill read_index()

read_index() shares the same problem as hold_locked_index(): it
assumes $GIT_DIR/index. Move all call sites to repo_read_index()
instead. read_index_preload() and read_index_unmerged() are also
killed as a consequence.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
16 files changed:
apply.c
blame.c
builtin/am.c
builtin/commit.c
builtin/diff-tree.c
builtin/rebase.c
cache.h
merge-recursive.c
merge.c
preload-index.c
read-cache.c
repository.h
rerere.c
revision.c
sequencer.c
sha1-name.c