libgit2

git_index_entry_stage

Version:

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

Signature

int git_index_entry_stage(const git_index_entry *entry);

Parameters

In
entry

The entry

Returns

int

the stage number

Versions