private int compareToReleaseMinor ( GitVersion that ) { if ( this . containsReleaseMinor ( ) && that . containsReleaseMinor ( ) ) return compareToInt ( this . getReleaseMinor ( ) , that . getReleaseMinor ( ) ) ; else if ( ! this . containsReleaseMinor ( ) && ! that . containsReleaseMinor ( ) ) return SAME ; else if ( this . containsReleaseMinor ( ) && ! that . containsReleaseMinor ( ) ) return LATER ; else return PREVIOUS ; }
Compares minor releases values given that git version contains no tag for none of GitVersion objects