Skip to main content

script_runner

Function script_runner 

Source
pub fn script_runner(
    local_tree: &dyn WorkingTree,
    script: &[&str],
    subpath: &Path,
    commit_pending: CommitPending,
    resume_metadata: Option<&Value>,
    committer: Option<&str>,
    extra_env: Option<HashMap<String, String>>,
    stderr: Stdio,
) -> Result<CommandResult, Error>
Expand description

Run a script in a tree and commit the result.

This ignores newly added files.

ยงArguments

  • local_tree: Local tree to run script in
  • subpath: Subpath to run script in
  • script: Script to run
  • commit_pending: Whether to commit pending changes