Skip to main content

indexed_request

Function indexed_request 

Source
pub fn indexed_request<S: AsRef<OsStr>>(
    cwd: &Path,
    arguments: &[S],
    index: Option<&Path>,
    object_directory: Option<&Path>,
) -> GitRequest
Expand 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 })