git.objects.base.Object has a size property, but from the documentation it is not clear what is the unit of it.