git_index_stage_t

Git index stage states

Values

ValueMeaning
GIT_INDEX_STAGE_ANY-1

Match any index stage.

Some index APIs take a stage to match; pass this value to match any entry matching the path regardless of stage.

GIT_INDEX_STAGE_NORMAL0

A normal staged file in the index.

GIT_INDEX_STAGE_ANCESTOR1

The ancestor side of a conflict.

GIT_INDEX_STAGE_OURS2

The "ours" side of a conflict.

GIT_INDEX_STAGE_THEIRS3

The "theirs" side of a conflict.

Meta