Skip to main content

lease_condition

Function lease_condition 

Source
pub fn lease_condition(
    cwd: &Path,
    remote: &str,
    branch: &str,
    lease: PushLease,
) -> Result<RefWriteCondition, DispatchError>
Expand description

Resolve the CAS condition for a single-branch push from the local remote-tracking ref refs/remotes/<remote>/<branch> and the lease policy.