Skip to main content

list_unmerged_index_paths

Function list_unmerged_index_paths 

Source
pub fn list_unmerged_index_paths(
    context: &GitContext,
    cwd: &Path,
    commit_index: &Path,
) -> Result<Vec<Vec<u8>>, GitFailure>
Expand description

What: Lists the repository paths with unmerged stages, once each, in first-seen order. Why: A conflicted path cannot be committed by automatic fixes, so preparation refuses it.

In TS you’d write (pseudocode):

await listUnmergedIndexPaths({ gitPath, cwd, indexPath });