]> git.ipfire.org Git - thirdparty/git.git/commit - convert.h
convert.c: remove an implicit dependency on the_index
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 13 Aug 2018 16:14:21 +0000 (18:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Aug 2018 21:14:42 +0000 (14:14 -0700)
commit7f944e264ebe2fcf9a2c228a9fc9463ab3274d39
treeb745e284c241468980b72f7bfd7038dce8757eab
parent7a400a2c0270f2085b70690e4ddbfd8d141e69ca
convert.c: remove an implicit dependency on the_index

Make the convert API take an index_state instead of assuming the_index
in convert.c. All external call sites are converted blindly to keep
the patch simple and retain current behavior. Individual call sites
may receive further updates to use the right index instead of
the_index.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.c
archive.c
builtin/cat-file.c
builtin/ls-files.c
convert.c
convert.h
diff.c
entry.c
merge-recursive.c
sha1-file.c