summaryrefslogtreecommitdiff
path: root/tests/merge
Commit message (Collapse)AuthorAgeFilesLines
* 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".
* maint: avoid non-portable use of test -aJim Meyering2011-03-261-1/+1
| | | | | | | | | | With these changes, "make sc_prohibit_test_minus_ao" almost passes. Uses of "test -o" remain. Note: unchecked uses of test -ot/-nt also remain. * tests/empty-files: Use "test C1 && test C2", not "test C1 -a C2" * tests/merge: Likewise. * tests/symlinks: Likewise. * tests/test-lib.sh: Likewise.
* More test suite fixesAndreas Gruenbacher2010-05-051-0/+1
| | | | | * tests/create-delete: Do not use 'diff' here. * tests/merge: Require GNU diff.
* Some test suite fixes and improvementsAndreas Gruenbacher2010-05-041-1/+1
| | | | | | | | * tests/test-lib.sh: Flag tests with missing pre-requirements as SKIPped instead of PASSed. Do not use GNU diff extensions, but still require a diff that understands "-u". * tests: Do not unnecessarily require GNU diff in a lot of tests. Make the sed utility optional.
* Portability fixes in the test suiteAndreas Gruenbacher2010-04-151-31/+30
| | | | | | | | | | | | * tests/merge: Use the sed commands i, a, and c in their standard form instead of relying on a GNU extension, and pass sed a script (-f) instead of a list of commands via -e. Some versions of sed don't support expressions like /^\(\|foo\)$/. * tests/corrupt-reject-files: Use the more widely available -e switch instead of -A. * tests/crlf-handling: Likewise. * tests/preserve-mode-and-timestamp: Use touch -t instead of touch -d. Some non-GNU versions of date can't show a file's timestamp.
* Merge: detect already-applied inserts at the end of filesAndreas Gruenbacher2010-02-211-0/+30
| | | | | | | * 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.
* * src/patch.c (longopts, get_some_switches): Add an optional argumentAndreas Gruenbacher2009-12-291-3/+289
| | | | | | | | | 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-16/+16
|
* The -m option hasn't been officially allocated yet; use only the long form ↵Andreas Gruenbacher2009-07-191-1/+1
| | | | for now (--merge)
* Make the ed utility optional in the test suiteAndreas Gruenbacher2009-04-031-43/+37
|
* Another minor merge message improvementAndreas Gruenbacher2009-04-031-2/+4
|
* Slightly improved merge result reportingAndreas Gruenbacher2009-04-031-25/+16
|
* Fix two failed assertions in merge_hunk()Andreas Gruenbacher2009-04-021-3/+29
|
* The maximum position for a merge was computed too lowAndreas Gruenbacher2009-04-021-0/+30
|
* Add better merge supportAndreas Gruenbacher2009-04-021-17/+8
|
* Locate hunks to merge more intelligentlyAndreas Gruenbacher2009-04-021-22/+14
|
* Add a simple form of merge supportAndreas Gruenbacher2009-04-021-0/+316