ref: 65a6439638a18e4317e144a0117db7604a2f2940
dir: /diff/lines/chunk.go/
package lines
// Chunk represents a contiguous region of lines categorized
// as unchanged, deleted, or added.
type Chunk struct {
Kind ChunkKind
Data []byte
}
// ChunkKind enumerates the type of diff chunk.
type ChunkKind int
const (
// ChunkKindUnchanged represents an unchanged diff chunk.
ChunkKindUnchanged ChunkKind = iota
// ChunkKindDeleted represents a deleted diff chunk.
ChunkKindDeleted
// ChunkKindAdded represents an added diff chunk.
ChunkKindAdded
)