Skip to main content

plan_pull

Function plan_pull 

Source
pub fn plan_pull(region: &[OsString]) -> Option<PullPlan>
Expand description

What: Read the arguments after pull, by exact spelling, or nothing when any of them is not read exactly. Why: Git accepts unambiguous abbreviations and options this does not mirror (--rebase, --ff-only, -s, -X, --autostash, --dry-run, --recurse-submodules); a pull with one of them is native Git’s whole, and so is a refspec that could move the checked-out branch (it holds a colon).

In TS you’d write (pseudocode):

function planPull(region: string[]): PullPlan | undefined;