submodule: convert stage_updated_gitmodules to take a struct index_state
Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
95ec6b1b33
commit
3b8317a9e6
@ -143,9 +143,9 @@ int remove_path_from_gitmodules(const char *path)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void stage_updated_gitmodules(void)
|
||||
void stage_updated_gitmodules(struct index_state *istate)
|
||||
{
|
||||
if (add_file_to_cache(GITMODULES_FILE, 0))
|
||||
if (add_file_to_index(istate, GITMODULES_FILE, 0))
|
||||
die(_("staging updated .gitmodules failed"));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user