pub fn update_index(
git_run_info: &GitRunInfo,
repo: &Repo,
index: &Index,
event_tx_id: EventTransactionId,
commands: &[UpdateIndexCommand],
) -> Result<()>
Expand description
Update the index. This handles updates to stages other than 0.
libgit2 doesn’t offer a good way of updating the index for higher stages, so
internally we use git update-index
directly.