summaryrefslogtreecommitdiff
path: root/src/merge.c
Commit message (Collapse)AuthorAgeFilesLines
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* maint: update copyright date year ranges to include 2011Jim Meyering2011-03-271-1/+1
| | | | | * bootstrap.conf (gnulib_modules): Add update-copyright. Run "make update-copyright".
* Globally rename type LINENUM to lin (as in diffutils)Andreas Gruenbacher2010-04-191-51/+48
| | | | * Globally rename type LINENUM to lin (as in diffutils).
* diffseq: Use the gnulib version instead of a private copyAndreas Gruenbacher2010-04-191-1/+1
| | | | * diffseq: Use the gnulib version instead of a private copy.
* Merge: detect already-applied inserts at the end of filesAndreas Gruenbacher2010-02-211-5/+8
| | | | | | | * src/merge.c: When a hunk has fewer suffix than prefix context lines, try matching to the end of the file instead of doing a "greedy match": this allows to detect already-applied inserts at the end of the file. * tests/merge: Add test cases for this.
* No longer use "continue" as the only instruction in a loop bodyAndreas Gruenbacher2010-01-151-2/+2
| | | | | | | | * src/bestmatch.h, src/diffseq.h, src/inp.c, src/maketime.c, src/merge.c, src/partime.c, src/pch.c, src/util.c: No longer use "continue" as the only instruction in a loop body: at least one compiler chokes on this in combination with variable-length arrays as in src/bestmatch.h.
* * src/bestmatch.h, src/common.h, src/diffseq.h, src/inp.c, src/inp.h,Andreas Gruenbacher2010-01-021-12/+11
| | | | | | | | src/maketime.c, src/maketime.h, src/merge.c, src/partime.c, src/partime.h, src/patch.c, src/pch.c, src/pch.h, src/quotesys.c, src/util.c, src/util.h, src/version.c: Add year 2010 to copyright notice. Replace the GPLv2 license template with the GPLv3 license template.
* * src/patch.c (longopts, get_some_switches): Add an optional argumentAndreas Gruenbacher2009-12-291-11/+38
| | | | | | | | | to the --merge option to choose the output formats for conflicts. * patch.man: Document the new optional argument of --merge. * src/merge.c (merge_hunk): Implement diff3-style conflicts. * src/common.h (conflict_style): This global variable determines the output format for conflicts. * tests/merge: Add test cases for the diff3 output format.
* Clarify the message when (part of) a hunk cannot be mergedAndreas Gruenbacher2009-10-271-1/+1
|
* When merging, make sure that hunks will not end up "out of order"Andreas Gruenbacher2009-05-121-0/+2
|
* Add a similar asymmetric hunk check to locate_merge()Andreas Gruenbacher2009-04-051-0/+7
|
* Move all source and header files into src/Andreas Gruenbacher2009-04-051-0/+538