429 Commits

Author SHA1 Message Date
Andreas Gruenbacher
0a22c10196 Add unified reject format and the --reject-format=FORMAT option 2009-03-22 13:38:46 +01:00
Jim Meyering
4399677be9 Off-by-one error when column two of context diffs is neither ' ' nor '\t'
On Sun, 26 Aug 2007 13:50:45 +0200 Jim Meyering wrote:
> The problem arises when the input is a context diff and the second
> byte on a line of context is not a space or tab.
> Patch then happily gobbles/ignores that bogus byte and outputs
> the rest of the line with an additional (NUL) byte at the end.
> [...]
> Alternatively, and perhaps better, would be to warn about
> the corrupt patch and exit right away, but I'm not sure this
> is an officially corrupt patch since patch is rather liberal
> in what it accepts: should that space in column 2 really be optional
> for context diffs?
2009-03-22 13:38:33 +01:00
Andreas Gruenbacher
17a7d6db47 Wrong assertion in savebuf
Patch fails with "Assertion `s && size' failed" when it sees
a zero-length line. However, as the test case shows, a zero-
length line can occur as the last line of a patch.

Reported by Clarence Dang <clarencedang@users.sourceforge.net>.
2009-03-22 13:38:25 +01:00
Andreas Gruenbacher
65b2c8db1c Preserve the "diff -p" output in reject files 2009-03-22 13:37:35 +01:00
Andreas Gruenbacher
78a818a550 Add a simple regression test framework 2009-03-22 13:37:24 +01:00
Andreas Gruenbacher
87a86d7f6b Recompute aclocal.m4 with aclocal 2009-03-22 13:37:13 +01:00
Andreas Gruenbacher
2342669b6b Add README-alpha automatically when appropriate 2009-03-22 13:37:06 +01:00
Andreas Gruenbacher
e0a0b12a42 Compute PACKAGE_VERSION automatically from the repository 2009-03-22 13:36:53 +01:00
Andreas Gruenbacher
704083c7bd Makefile.in: improve dist target, clean up better 2009-03-22 13:36:45 +01:00
Andreas Gruenbacher
48a9e9afb9 Various changes lumped together
(Imported from working tree by Andreas Gruenbacher)
2009-03-21 17:40:30 +01:00
Paul Eggert
2b05b5c020 Makefile.in fixes
(Imported from working tree by Andreas Gruenbacher)
2009-03-20 21:46:59 +01:00
Stepan Kasal
30bdc12c5e Allow ed commands without address
(Imported from working tree by Andreas Gruenbacher)
2009-03-20 21:46:59 +01:00
Manu B
adf5a43517 Trivial change to port to mingw
(Imported from working tree by Andreas Gruenbacher)
2009-03-20 21:46:59 +01:00
Paul Eggert
a291a3319a Remember backup files, handle missing timestamps better
(Imported from RCS by Andreas Gruenbacher)
2009-03-20 21:46:59 +01:00
Paul Eggert
a6ccce8a33 Trivial make check target
(Imported from RCS by Andreas Gruenbacher)
2009-03-20 21:46:59 +01:00
Paul Eggert
7a5222a06d Sync with gnulib
(Imported from RCS by Andreas Gruenbacher)
2009-03-20 21:46:59 +01:00
Paul Eggert
ae06fb41e2 Autoconf update
(Imported from RCS by Andreas Gruenbacher)
2009-03-20 21:46:59 +01:00
Paul Eggert
480810f1dc Fix unified diffs with CRLF line endings
(Imported from RCS by Andreas Gruenbacher)
2009-03-20 21:46:58 +01:00
Andreas Gruenbacher
81a6ec1d17 Packaging changes
Remove generated files.
Add autogen.sh for regenerating those files.
Add .gitignore.
2009-03-20 21:46:58 +01:00
Andreas Gruenbacher
e930d168ad Import of patch-2.5.9.tar.gz v2.5.9 2009-03-17 21:46:21 +01:00
Andreas Gruenbacher
aa0d4dd837 Import of patch-2.5.8.tar.gz v2.5.8 2009-03-17 21:44:30 +01:00
Andreas Gruenbacher
712cce6fdd Import of patch-2.5.7.tar.gz v2.5.7 2009-03-17 21:43:20 +01:00
Andreas Gruenbacher
79159942f1 Import of patch-2.5.4.tar.gz v2.5.4 2009-03-12 15:17:49 +01:00
Andreas Gruenbacher
957f7b6423 Import of patch-2.5.3.tar.gz v2.5.3 2009-03-12 15:17:03 +01:00
Andreas Gruenbacher
6b2b462038 Import of patch-2.5.tar.gz v2.5 2009-03-12 15:15:49 +01:00
Andreas Gruenbacher
6263c220df Import of patch-2.4.tar.gz v2.4 2009-03-12 15:15:17 +01:00
Andreas Gruenbacher
1adb4535a3 Import of patch-2.3.tar.gz v2.3 2009-03-12 15:14:29 +01:00
Andreas Gruenbacher
bcce123390 Import of patch-2.2.tar.gz v2.2 2009-03-12 15:13:11 +01:00
Andreas Gruenbacher
068f401ee3 Import of patch-2.1.tar.gz v2.1 2009-03-12 15:09:25 +01:00