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_IDXENTRY_STAGEMASK) >> GIT_IDXENTRY_STAGESHIFT

Signature

int git_index_entry_stage(const git_index_entry *entry);

Parameters

In
entry

The entry

Returns

int

the stage number

Versions