Documentation
¶
Overview ¶
Package streamdiff intercepts streaming Git patches on stdin (git diff, git log -p, git show), fetches the blobs, and renders AST diffs in place of standard patch text.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StreamConfig ¶
type StreamConfig struct {
Format string
DiffOpts pipeline.DiffOptions
UnifiedOpts unified.RenderOptions
SideBySideOpts sidebyside.RenderOptions
// IsActive reports whether the output receiver is still alive and accepting data.
// If nil, processing continues until EOF.
IsActive func() bool
// Pager monitors the terminal pager subprocess, if active.
Pager *pager.Pager
// Context cancels streaming when the caller is done.
Context context.Context
}
StreamConfig configures the streaming diff processor and renderers.