https://github.com/diffplug/libxdiff
LibXDiff ported to java
https://github.com/diffplug/libxdiff
Last synced: 6 months ago
JSON representation
LibXDiff ported to java
- Host: GitHub
- URL: https://github.com/diffplug/libxdiff
- Owner: diffplug
- License: lgpl-2.1
- Created: 2021-02-19T00:54:41.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-19T05:32:37.000Z (almost 5 years ago)
- Last Synced: 2025-03-11T06:49:43.031Z (10 months ago)
- Language: Java
- Size: 71.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libxdiff: java port
This is a line-for-line port of the subset of LibXDiff which relates to sliding within-line diffs to account for brackets, quotes, etc.
The heuristics used to develop the weights are available at [`mhagger/diff-slider-tools`](https://github.com/mhagger/diff-slider-tools).
The exact lines translated are [lines 438-677](https://github.com/git/git/blob/791ad494835ac544d9e91573f3a65aeb97d126ed/xdiff/xdiffi.c#L438-L677) of the `xdiffi.c` file as it existed in `git/git` on August 17 2018. As of Oct 20 2020, none of the changes in upstream have affected the lines we care about.
# Changelog
## [Unreleased]
Originally translated to java on August 30 2019, but it sat dormant on a local branch for too long.
# Acknowledgements
- Thanks [Davide Libenzi](https://github.com/davidel) for writing the part of LibXDiff which we use.
- Thanks to [Michael Haggerty](https://github.com/mhagger) for developing the heuristic weightings.