pub fn indexed_request<S: AsRef<OsStr>>(
cwd: &Path,
arguments: &[S],
index: Option<&Path>,
object_directory: Option<&Path>,
) -> GitRequestExpand description
What:
A Git request that reads or writes one private index,
ignoring the invocation’s global options as the incumbent does.
Why:
GIT_INDEX_FILE and GIT_OBJECT_DIRECTORY select the private state.
In TS you’d write (pseudocode):
runTransactionGit({ gitPath, cwd, indexPath, objectDirectory, args })