Skip to main content

default_base_ref

Function default_base_ref 

Source
pub fn default_base_ref(repo: &Repository) -> Result<String>
Expand description

Resolves the default base ref: the merge-base of origin/main (falling back to main) and HEAD, returned as a hex SHA.