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