filechanges
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| FileChange githarbor.core.filechanges Represents a file change in a diff. |
🛈 DocStrings¶
FileChange
dataclass
¶
Represents a file change in a diff.
Source code in src/githarbor/core/filechanges.py
parse_diff
¶
parse_diff(diff_str: str) -> list[FileChange]
Parse a unified diff string into a list of file changes.
Uses the unidiff library for robust diff parsing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
diff_str
|
str
|
Unified diff string |
required |
Returns:
| Type | Description |
|---|---|
list[FileChange]
|
List of FileChange objects |