Skip to main content

effective_directory

Function effective_directory 

Source
pub fn effective_directory(start: &Path, global_prefix: &[OsString]) -> PathBuf
Expand description

What: The effective invocation directory: the process directory moved by every -C of the global options. Why: Relative pathspecs and the transaction’s Git queries resolve from where Git itself would run.

In TS you’d write (pseudocode):

parseGlobalOptions(args).effectiveCwd