Skip to main content

list_changed_index_paths

Function list_changed_index_paths 

Source
pub fn list_changed_index_paths(
    context: &GitContext,
    cwd: &Path,
    commit_index: &Path,
    base_revision: &str,
    object_directory: &Path,
) -> Result<Vec<String>, GitFailure>
Expand description

What: Lists the paths the private index changes against the recorded base. Why: The base is the recorded one, so a landing that moved HEAD since invocation changes nothing here.

In TS you’d write (pseudocode):

await listChangedIndexPaths({ gitPath, cwd, indexPath, baseRevision, objectDirectory });