Skip to main content

stackable_option_tokens

Function stackable_option_tokens 

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

What: The option tokens of a push that may be integrated after a rejection, or nothing when it may not. Option<Vec<OsString>> is “the tokens, or no answer”. Why: Only a plain update of branches keeps its meaning when the wrapper merges what landed on the remote and pushes the merge; the stacked push repeats these tokens and replaces the remote and refspec arguments, so the caller’s --no-verify, --push-option and the like still apply. A region the table refuses, a forced refspec (+src:dst) and every option in NOT_STACKABLE give nothing.

In TS you’d write (pseudocode):

function stackableOptionTokens(region: string[]): string[] | undefined;