git_index_entry_stage

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

extern (C) nothrow @nogc
int
git_index_entry_stage

Parameters

entry const(.git_index_entry)*

The entry

Return Value

Type: int

the stage number

Meta