summaryrefslogtreecommitdiff
path: root/tests/concat-git-diff
Commit message (Collapse)AuthorAgeFilesLines
* test-lib.sh: factorize require_* functionsQuentin Casasnovas2015-01-311-1/+1
| | | | | | | Since the code is identical when just checking if a utility is present on the system or not, we can factorize it. Signed-off-by: Quentin Casasnovas <quentin.casasnovas@oracle.com>
* Fix file truncation when switching from git diff to non-git diffAndreas Gruenbacher2012-09-181-5/+36
| | | | | | | | * src/patch.c (main): Output queued output files only when switching from a git diff to a non-git diff. This can modify the input file, so make sure to stat() it again. * tests/concat-git-diff: Add test case growing a file with a git diff and then with a non-git diff; without this fix; the result would be truncated.
* Detect concatenated git-style patches by tracking what's in the output queueAndreas Gruenbacher2012-08-081-7/+17
| | | | | | | * src/patch.c (main): Instead of looking at the SHA hashes to detect concatenated git-style patches, detect when a file to write to is already in the output queue. * tests/concat-git-diff: Add create/delete tests.
* Add another git-style diff concatenation regression testDmitry V. Levin2012-08-081-0/+40
| | | | * tests/concat-git-diff: Add test case here.
* In git-style diffs, create new files immediatetly and only remember files to ↵Andreas Gruenbacher2012-08-021-0/+1
| | | | | | | | modify * src/patch.c (output_file): Create new files immediately. Document why things are implemented that way. * tests/concat-git-diff: Fix glitch in test case.
* Add file create test case which still needs to be fixedAndreas Gruenbacher2012-08-011-2/+7
| | | | * tests/concat-git-diff: Add file create test case.
* Try to recognize concatenated git diffs and handle them appropriatelyAndreas Gruenbacher2012-08-011-0/+41
* src/patch.c (main): Remember the "before" SHA1 hashes of git-style patches; the same patch will always use the same "before" SHA1 for a specific file. Try to recognize concatenated patches based on that. * tests/concat-git-diff: New test case. * tests/Makefile.am (TESTS): Add new test case.