Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ktravis/diff
Go implementation of patience diff, LCS, and merge
https://github.com/ktravis/diff
diff golang merge patience
Last synced: about 2 months ago
JSON representation
Go implementation of patience diff, LCS, and merge
- Host: GitHub
- URL: https://github.com/ktravis/diff
- Owner: ktravis
- License: bsd-2-clause
- Created: 2017-08-23T12:22:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-23T12:45:23.000Z (over 7 years ago)
- Last Synced: 2024-06-20T00:37:59.242Z (7 months ago)
- Topics: diff, golang, merge, patience
- Language: Go
- Size: 10.7 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# diff [![GoDoc](https://godoc.org/github.com/ktravis/diff?status.svg)](https://godoc.org/github.com/ktravis/diff)
Go implementation of patience diff, LCS, and merge```shell
go get github.com/ktravis/diff
```---
Patience diff was developed by Bram Cohen, see [here](http://alfedenzo.livejournal.com/170301.html) and
[here](http://bramcohen.livejournal.com/73318.html) for explanations.
The diffs produced are generally more human-readable, i.e.,the patience diff:
```
void func1() {
x += 1
}+void functhreehalves() {
+ x += 1.5
+}
+
void func2() {
x += 2
}
```vs the traditional LCS-based diff:
```
void func1() {
x += 1
+}
+
+void functhreehalves() {
+ x += 1.5
}
void func2() {
x += 2
}
```