libgit2

git_index_entry

Version:

In-memory representation of a file entry in the index.

This is a public structure that represents a file entry in the index. The meaning of the fields corresponds to core Git's documentation (in "Documentation/technical/index-format.txt").

The flags field consists of a number of bit fields which can be accessed via the first set of GIT_IDXENTRY_... bitmasks below. These flags are all read from and persisted to disk.

The flags_extended field also has a number of bit fields which can be accessed via the later GIT_IDXENTRY_... bitmasks below. Some of these flags are read from and written to disk, but some are set aside for in-memory only reference.

Signature

typedef struct git_index_entry { git_index_time ctime git_index_time mtime unsigned int dev unsigned int ino unsigned int mode unsigned int uid unsigned int gid git_off_t file_size git_oid oid unsigned short flags unsigned short flags_extended char *path };

Members

unsigned int
dev
unsigned int
ino
unsigned int
mode
unsigned int
uid
unsigned int
gid
file_size
oid
unsigned short
flags
unsigned short
flags_extended
char *
path

Returned By

Parameter To

Versions