summaryrefslogtreecommitdiff
path: root/submodule.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-12-12 19:53:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-12 20:35:20 (GMT)
commit3b8317a9e6f1538c99074eeffd4b27ac18de5648 (patch)
tree3284b939162e3e2e2cd23182c5372025fa9521a8 /submodule.c
parent95ec6b1b3393eb6e26da40c565520a8db9796e9f (diff)
downloadgit-3b8317a9e6f1538c99074eeffd4b27ac18de5648.zip
git-3b8317a9e6f1538c99074eeffd4b27ac18de5648.tar.gz
git-3b8317a9e6f1538c99074eeffd4b27ac18de5648.tar.bz2
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>
Diffstat (limited to 'submodule.c')
-rw-r--r--submodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/submodule.c b/submodule.c
index 95e6aff..7097be8 100644
--- a/submodule.c
+++ b/submodule.c
@@ -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"));
}