gitdiff

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package gitdiff is omatty's only route to go-gitdiff: it parses git's unified output into internal/domain/review's review.Diff, so nothing else in omatty ever sees go-gitdiff's types (ADR 0001, migration step 3.6b; invariant 4 in spirit).

d, err := gd.ParseDiff(strings.NewReader(raw))

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDiff

func ParseDiff(r io.Reader) (review.Diff, error)

ParseDiff parses git's unified output. go-gitdiff is confined to this file, in the spirit of invariant 4: the rest of omatty sees only review's own types.

d, err := gitdiff.ParseDiff(strings.NewReader(raw))

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL