git_index_entry_extended_flag_t

Bitmasks for on-disk fields of git_index_entry's flags_extended

In memory, the flags_extended fields are divided into two parts: the fields that are read from and written to disk, and other fields that in-memory only and used by libgit2. Only the flags in GIT_INDEX_ENTRY_EXTENDED_FLAGS will get saved on-disk.

Thee first three bitmasks match the three fields in the git_index_entry flags_extended value that belong on disk. You can use them to interpret the data in the flags_extended.

The rest of the bitmasks match the other fields in the git_index_entry flags_extended value that are only used in-memory by libgit2. You can use them to interpret the data in the flags_extended.

Values

ValueMeaning
GIT_INDEX_ENTRY_INTENT_TO_ADD1 << 13
GIT_INDEX_ENTRY_SKIP_WORKTREE1 << 14
GIT_INDEX_ENTRY_EXTENDED_FLAGSGIT_INDEX_ENTRY_INTENT_TO_ADD | GIT_INDEX_ENTRY_SKIP_WORKTREE
GIT_INDEX_ENTRY_UPTODATE1 << 2

Meta