project_release.git.compare_ref

project_release.git.compare_ref(ref: SymbolicReference, base_ref: SymbolicReference) RefPosition[source]

Compare a ref to a base ref and return the relative position.

Parameters:
  • ref – The ref to be compared.

  • base_ref – The base ref of the comparison.

Returns:

The relative position of the ref compared to the base ref.

Return type:

RefPosition