Skip to content

FileChange

🛈 DocStrings

Represents a file change in a diff.

Source code in src/githarbor/core/filechanges.py
@dataclass
class FileChange:
    """Represents a file change in a diff."""

    path: str
    content: str | None  # None means file deletion
    mode: Literal["add", "modify", "delete"]
    old_path: str | None = None  # For renamed files

:fa-brands-github: Show source on GitHub