go-diff

Library for generating Git-style diff patchsets in Go.

MIT License

Stars
9
Committers
1

go-diff

Library for generating Git-style diff patchsets in Go.

Built to be used in the pure-Go implementation of the Git backend for sourcegraph's go-vcs.

Status: Prototyping. None of the backends produce complete output yet, but the difflib one is closest and least broken.

Features

  • Git-style patch headers for each file (are there other styles to support?).
  • Bring your own diff algorithm by implementing the Differ interface.
  • Includes a few diffing backends:

Sponsors

Work on this package is sponsored by Sourcegraph.

License

MIT.