pub fn update_intent_to_add(
repo: &dyn Repo,
old_tree: &MergedTree,
new_tree: &MergedTree,
) -> Result<(), GitResetHeadError>
Expand description
Diff old_tree
to new_tree
and mark added files as intent-to-add in the
Git index. Also removes current intent-to-add entries in the index if they
were removed in the diff.
Should be called when the diff between the working-copy commit and its parent(s) has changed.