]> git.ipfire.org Git - thirdparty/git.git/commit - diffcore-delta.c
diff.c: reduce implicit dependency on the_index
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 21 Sep 2018 15:57:19 +0000 (17:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Sep 2018 16:48:10 +0000 (09:48 -0700)
commitb78ea5fc3574a2ce262cfb37a7ea890caddd0cf5
treefa241215b447ccd61db65f6a44356b7f93344854
parent92a1bf5a58920e5f1f51106f06cd9dc6d6eb6c43
diff.c: reduce implicit dependency on the_index

diff and textconv code has so widespread use that it's hard to simply
update their api and all call sites at once because it would result in
a big patch. For now reduce the_index references to two places:
diff_setup() and fill_textconv().

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reset.c
diff.c
diff.h
diffcore-break.c
diffcore-delta.c
diffcore-rename.c
diffcore.h
line-log.c