fixed git ahead|behin matching and number of commits