Skip to content

libgit2/xdiff

Repository files navigation

xdiff (via git)

This is the version of the xdiff file differential library used by git.

This project began life as LibXDiff by Davide Libenzi, but has been modified to suit the git project's needs. Some unnecessary functionality has been removed and some new functionality has been added.

Fundamentally, this library is meant for git but has been extracted into a standalone library for compatibility with other git-like projects, for example, libgit2.

This repository tracks the git project as an upstream, and makes only minimal (with a goal of zero) changes to xdiff itself.

Inclusion in your application

Although this project is used by git, it has no git-specific code explicitly inside it. git -- and other callers -- add application-specific code through the git-xdiff.h file. For example, if your application uses a custom malloc, then you can configure it in the git-xdiff.h file.

Contributions

Contributions to improve the build or compatibility of this library as a standalone work of art are welcome. Contributions that change the diff functionality, however, should be made to git project itself. (Once those changes land in git, thehy will be included here.)

Credits

Many thanks to Davide Libenzi, the original author of LibXDiff, as well as the numerous contributors to git and libgit2 who have improved xdiff over the years.