porcelain

module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT

README ¶

porcelain 🫖

Go Reference CodeFactor Build Status

Porcelain provides parsers for Git's porcelain status output in Go.

The parsers are performant (parsing a typical git status report including headers in ~1 µs single-threaded), and robust (fuzz tested to avoid any possible crashing panics).

Support for both regular (LF delimited) and -z (NUL delimited) output formats is provided.

The porcelain=v2 format was first introduced in Git v2.11.0 (2016), and is recommended for most use cases, as it is significantly more robust and addresses some inconsistencies with the historic porcelain=v1 format.

Directories ¶

Path Synopsis
internal
tool/porcelain2go command
Command porcelain2go converts porcelain output of `git status` into a Go struct.
Command porcelain2go converts porcelain output of `git status` into a Go struct.
Package statusv1 parses the output of `git status --porcelain=v1`.
Package statusv1 parses the output of `git status --porcelain=v1`.
Package statusv2 parses the output of `git status --porcelain=v2`.
Package statusv2 parses the output of `git status --porcelain=v2`.

Jump to

Keyboard shortcuts

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