Skip to main content

push_shape

Function push_shape 

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

What: Read the destination and the named refs of a push. None when the region is one Git itself would refuse. Why: One reading of the arguments serves the upload plan, so the remote and the refs it names are the ones Git reads.

In TS you’d write (pseudocode):

function pushShape(region: string[]): PushShape | undefined;