summaryrefslogtreecommitdiff
path: root/src/xdiff/xmerge.c
Commit message (Collapse)AuthorAgeFilesLines
* xdiff: catch memory allocation errorsPatrick Steinhardt2019-08-231-0/+12
| | | | | | | The xdiff code contains multiple call sites where the results of `xdl_malloc` are not being checked for memory allocation errors. Add checks to fix possible segfaults due to `NULL` pointer accesses.
* git_error: use new names in internal APIs and usageEdward Thomson2019-01-221-15/+15
| | | | | Move to the `git_error` name in the internal API for error-related functions.
* xdiff: upgrade to git's included xdiffEdward Thomson2018-01-211-20/+80
| | | | | | Upgrade xdiff to git's most recent version, which includes changes to CR/LF handling. Now CR/LF included in the input files will be detected and conflict markers will be emitted with CR/LF when appropriate.
* xdiff: fix memleak on error casePatrick Steinhardt2016-03-011-2/+5
| | | | | | | | | | | Commit 3d1abc5afce fixes a memory leak in the xdiff code. In the process of upstreaming the fix it was pointed out by Johannes Schindelin that there is another memory leak present (see [1]). Fix the second memory leak by applying the upstream fix to our code base. [1]: http://thread.gmane.org/gmane.comp.version-control.git/287034
* xmerge: fix memory leak on error pathPatrick Steinhardt2016-02-231-0/+2
|
* xdiff: convert size variables to size_tEdward Thomson2015-10-051-44/+98
|
* xdiff: upgrade to core git 2.4.5Edward Thomson2015-07-071-2/+2
| | | | | | | | | | | | | Upgrade xdiff to version used in core git 2.4.5 (0df0541). Corrects an issue where an LF is added at EOF while applying an unrelated change (ba31180), cleans up some unused code (be89977 and e5b0662), and provides an improved callback to avoid leaking internal (to xdiff) structures (467d348). This also adds some additional functionality that we do not yet take advantage of, namely the ability to ignore changes whose lines are all blank (36617af).
* Fix warnings on 64-bit windows buildsRussell Belfer2012-04-171-3/+3
| | | | | This fixes all the warnings on win64 except those in deps, which come from the regex code.
* Import xdiff library from gitRussell Belfer2012-03-021-0/+619
This is the initial import of the xdiff code (LGPL) from core git as of rev f349b562086e2b7595d8a977d2734ab2ef9e71ef