package
0.0.0-20231214144635-a707781cbb24
Repository: https://github.com/khulnasoft/codebase.git
Documentation: pkg.go.dev
# Functions
ParseFile parses a file unified diff.
ParseMultiFile parses a multi-file unified diff.
# Constants
LineAdded represents added line preceded by '+'.
LineDeleted represents deleted line preceded by '-'.
LineUnchanged represents unchanged, contextual line preceded by ' '.
# Structs
ErrInvalidHunkRange represents invalid line of hunk range.
FileDiff represents a unified diff for a single file.
Hunk represents change hunks that contain the line differences in the file.
Line represents a diff line.
# Type aliases
LineType represents the type of diff line.