class documentation

class SerializedIndexEntry:

View In Hierarchy

Represents a serialized index entry as stored in the index file.

This dataclass holds the raw data for an index entry before it's parsed into the more user-friendly IndexEntry format.

Method is_sparse_dir Check if this entry represents a sparse directory.
Method stage Extract the stage from the flags field.
Class Variable ctime Undocumented
Class Variable dev Undocumented
Class Variable extended_flags Undocumented
Class Variable flags Undocumented
Class Variable gid Undocumented
Class Variable ino Undocumented
Class Variable mode Undocumented
Class Variable mtime Undocumented
Class Variable name Undocumented
Class Variable sha Undocumented
Class Variable size Undocumented
Class Variable uid Undocumented
def is_sparse_dir(self) -> bool:

Check if this entry represents a sparse directory.

A sparse directory entry is a collapsed representation of an entire directory tree in a sparse index. It has: - Directory mode (0o040000) - SKIP_WORKTREE flag set - Path ending with '/' - SHA pointing to a tree object

Returns
boolTrue if entry is a sparse directory entry
def stage(self) -> Stage:

Extract the stage from the flags field.

Returns
StageStage enum value indicating merge conflict state
ctime: int | float | tuple[int, int] =

Undocumented

dev: int =

Undocumented

extended_flags: int =

Undocumented

flags: int =

Undocumented

gid: int =

Undocumented

ino: int =

Undocumented

mode: int =

Undocumented

mtime: int | float | tuple[int, int] =

Undocumented

name: bytes =

Undocumented

sha: ObjectID =

Undocumented

size: int =

Undocumented

uid: int =

Undocumented