Registry / utility / bluekeyes-go-gitdiff

bluekeyes-go-gitdiff

JSON →
library0.8.1gogounverified

A Go library for parsing and working with git diff output.

go get github.com/bluekeyes/go-gitdiff
INSTALL
IMPORT
SIG · BLUEKEYES-GO-GITDI
B
bluekeyes-go-gitdiff
utilitygov0.8.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gitdiff
github.com/bluekeyes/go-gitdiff

Parses a simple git diff string and prints the number of files changed.

package main import ( "fmt" "github.com/bluekeyes/go-gitdiff/gitdiff" ) func main() { files, _, _ := gitdiff.Parse("diff --git a/file.txt b/file.txt") fmt.Println(len(files)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources
bluekeyes-go-gitdiff — go get bluekeyes-go-gitdiff · libregistry