pub fn base_from_view(view: &Value, base_ref: &str) -> Result<String, Failure>Expand description
Extracts the exact Git object id base_ref currently points at.
The view reports a revision as <codec>-<digest>; codecs 11 and
12 are git SHA-1 and SHA-256. A revision under any other codec is
refused rather than coerced, because a workspace must start from an
object git can actually check out.
ยงErrors
Returns a Failure when the ref is absent, carries a non-Git
revision, or names an object id that is not hex of a git width.