]> git.ipfire.org Git - thirdparty/git.git/commit - apply.c
apply.c: make init_apply_state() take a struct repository
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 13 Aug 2018 16:14:39 +0000 (18:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Aug 2018 21:14:44 +0000 (14:14 -0700)
commit82ea77eca7af238f1ee65f5cbc945a01e16ee97a
treeb22a81980f6a20a4e9148233f124f5d6bb5c4270
parent332a82a52222da253cd5023cd4c5cde2d51636b9
apply.c: make init_apply_state() take a struct repository

We're moving away from the_index in this code. "struct index_state *"
could be added to struct apply_state. But let's aim long term and put
struct repository here instead so that we could even avoid more global
states in the future. The index will be available via
apply_state->repo->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
apply.h
builtin/am.c
builtin/apply.c