Return the stage number from a git index entry
This entry is calculated from the entry's flag attribute like this:
(entry->flags & GIT_IDXENTRY_STAGEMASK) >> GIT_IDXENTRY_STAGESHIFT
The entry
the stage number