{"modulePath":"github.com/HarshK97/diffmantic","version":"v0.17.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package streamdiff\n\nPackage 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.\n\n## Functions\n\n```go\nfunc Process(in io.Reader, out io.Writer, cwd string, cfg StreamConfig) error\n```\nProcess parses a Git patch stream from in, runs 2-way diffs through the AST pipeline concurrently across a bounded worker pool, and passes everything else straight to out in order.\n\n## Types\n\n```go\ntype StreamConfig struct {\n\tFormat         string\n\tDiffOpts       pipeline.DiffOptions\n\tUnifiedOpts    unified.RenderOptions\n\tSideBySideOpts sidebyside.RenderOptions\n\t// IsActive reports whether the output receiver is still alive and accepting data.\n\t// If nil, processing continues until EOF.\n\tIsActive func() bool\n\t// Pager monitors the terminal pager subprocess, if active.\n\tPager *pager.Pager\n\t// Context cancels streaming when the caller is done.\n\tContext context.Context\n}\n```\nStreamConfig configures the streaming diff processor and renderers.\n\n","path":"github.com/HarshK97/diffmantic/internal/streamdiff","name":"streamdiff","synopsis":"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.","isRedistributable":true}
