Skip to main content

base_revision

Function base_revision 

Source
pub fn base_revision(capture: &InvocationCapture) -> String
Expand description

What: The revision the transaction reads as its baseline tree: the base commit, or the empty tree when unborn. Why: Every baseline read of the transaction uses this one revision.

In TS you’d write (pseudocode):

baseRevision(capture) // capture.base.kind === 'commit' ? capture.base.oid : capture.emptyTreeOid