Categorygithub.com/lower-coder/go-git-diff
module
1.0.0
Repository: https://github.com/lower-coder/go-git-diff.git
Documentation: pkg.go.dev

# README

go-git-diff CI CI

A tool for developer to parse output of git diff command.

Usage

  • diff: A parser that parse output of git diff command to struct diff.

Example

package amin

import (
	"github.com/lower-coder/go-git-diff/diff"
)

const diffText = `diff --git a/file1 b/file1
index 504d2a1..50ccec3 100644
--- a/file1
+++ b/file1
@@ -1,4 +1,4 @@
+add a line
 some
 lines
-in
 file1`

func main() {
	d := diff.NewDiff()
	d.Parse(diffText)
}

Go Report Card license go-version contributors stars lines downloads

# Packages

Package diff 元数据.