calculating the last component of version
Gentoo Mono Handbook
get_revision() { git rev-list --count $2..$1 }