diff options
| author | 2026-02-21 13:29:38 +0800 | |
|---|---|---|
| committer | 2026-02-21 13:29:38 +0800 | |
| commit | 70916ec7713442a1f9b80f394b980ac2ab5a92df (patch) | |
| tree | 48b64c77008694c6fabe98ffaf6d77d2abfc8359 /diff/trees/kind.go | |
| parent | diff/lines: Line-based diffs via Myers (diff) | |
| signature | No signature | |
diff/trees: Add tree-diffing routines
Diffstat (limited to 'diff/trees/kind.go')
| -rw-r--r-- | diff/trees/kind.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/diff/trees/kind.go b/diff/trees/kind.go new file mode 100644 index 00000000..6fdc6e0d --- /dev/null +++ b/diff/trees/kind.go @@ -0,0 +1,15 @@ +package trees + +// EntryKind identifies a tree-diff entry kind. +type EntryKind int + +const ( + // EntryKindInvalid indicates an invalid diff entry kind. + EntryKindInvalid EntryKind = iota + // EntryKindDeleted indicates a deleted path. + EntryKindDeleted + // EntryKindAdded indicates an added path. + EntryKindAdded + // EntryKindModified indicates a modified path. + EntryKindModified +) |
