class documentation

class WalkEntry:

Constructor: WalkEntry(walker, commit)

View In Hierarchy

Object encapsulating a single result from a walk.

Method __init__ Initialize WalkEntry.
Method __repr__ Return string representation of WalkEntry.
Method changes Get the tree changes for this entry.
Instance Variable commit Undocumented
Instance Variable _changes Undocumented
Instance Variable _get_parents Undocumented
Instance Variable _rename_detector Undocumented
Instance Variable _store Undocumented
def __init__(self, walker: Walker, commit: Commit):

Initialize WalkEntry.

Parameters
walker:WalkerWalker instance that created this entry
commit:CommitCommit object for this entry
def __repr__(self) -> str:

Return string representation of WalkEntry.

def changes(self, path_prefix: bytes | None = None) -> list[TreeChange] | list[list[TreeChange]]:

Get the tree changes for this entry.

Returns: For commits with up to one parent, a list of TreeChange
objects; if the commit has no parents, these will be relative to the empty tree. For merge commits, a list of lists of TreeChange objects; see dulwich.diff_tree.tree_changes_for_merge.
Parameters
path_prefix:bytes | NonePortion of the path in the repository to use to filter changes. Must be a directory name. Must be a full, valid, path reference (no partial names or wildcards).
Returns
list[TreeChange] | list[list[TreeChange]]Undocumented
commit =

Undocumented

_changes: dict[bytes | None, list[TreeChange]] =

Undocumented

_get_parents =

Undocumented

_rename_detector =

Undocumented

_store =

Undocumented