pub fn default_tip(root: &Path, candidates: &[String]) -> Result<String>Expand description
The commit at the default branch’s tip, as a full hex SHA. The branch
resolves as for files_on_merge_base: origin/HEAD, or else the first
of candidates that origin has.
§Errors
Returns an error when no repository covers root, when there is no
origin remote, or when origin has none of those refs.