Documentation
¶
Overview ¶
Package gitchanges reads working-tree changes from git for the REPL's Changes panel. Everything comes from the git CLI and the files on disk; it never writes to the repository or its index.
Index ¶
- Constants
- type Diff
- type File
- type FileKey
- type Hunk
- type Line
- type LineKind
- type Repo
- func (r *Repo) AbsPath(repoPath string) string
- func (r *Repo) DisplayPath(repoPath string) string
- func (r *Repo) LoadDiff(ctx context.Context, f File, force bool) (*Diff, error)
- func (r *Repo) RepoPath(workDir, path string) (string, bool)
- func (r *Repo) Scan(ctx context.Context, paths []string) ([]File, error)
- type Status
Constants ¶
View Source
const (
MaxDiffBytes = 1 << 20
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
Click to show internal directories.
Click to hide internal directories.