pub fn effective_directory(start: &Path, global_prefix: &[OsString]) -> PathBufExpand 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