429 Commits

Author SHA1 Message Date
Andreas Gruenbacher
8c8cf43e87 When copying files, use full_write() from gnulib instead of write() 2009-07-19 16:37:11 +02:00
Andreas Gruenbacher
4e894668a7 Don't fail when removing nonexistent files in move_file 2009-06-15 23:31:47 +02:00
Andreas Gruenbacher
6d9e60f59a Import gnulib's rename() for platforms like Mingw 2009-06-05 21:57:06 +02:00
Andreas Gruenbacher
dee5d61753 To redirect messages, instead of assigning stderr to stdout, use dup2 2009-06-05 21:54:58 +02:00
Andreas Gruenbacher
4027b46b0f Include the subdirectory (gl/lib/) in GETOPT_H when using the gnulib version 2009-06-05 21:17:46 +02:00
Andreas Gruenbacher
2273a73529 Add some missing gnulib files 2009-06-05 21:08:01 +02:00
Andreas Gruenbacher
917aa4f4f1 When the file to patch is specified on the command line, apply all patches to that file 2009-05-12 21:55:35 +02:00
Andreas Gruenbacher
889d33db47 When merging, make sure that hunks will not end up "out of order" 2009-05-12 15:39:36 +02:00
Vincent Legoll
b008dece18 Change the default value of PATCH_GET to 0
Patch should default to not try to get files from revision control software
unless actively asked by the user with the "-g" or "--get" command-line
switches, or the PATCH_GET environment variable.

Make the posixly correct behaviour of not using source control, the global
patch default. I.e. default to "-g0".

This is related to debian BTS bug: #200895
Please refer to that discussion for more background
information and discussion.
2009-05-12 14:32:15 +02:00
Andreas Gruenbacher
e41a32b1d9 Portability improvements in update-version.sh 2009-04-11 13:50:24 +02:00
Andreas Gruenbacher
70df4e46b3 Don't forget to NUL terminate ptimestr in fetchname() 2009-04-08 16:37:57 +02:00
Andreas Gruenbacher
c59af953e8 Allow special characters in filenames read interactively 2009-04-08 12:28:33 +02:00
Andreas Gruenbacher
2e583114c7 Add support for sending output to standard output 2009-04-08 06:23:11 +02:00
Andreas Gruenbacher
7e2373f062 Remove redundant check in main(). 2009-04-08 06:19:20 +02:00
Andreas Gruenbacher
da45b67685 Preserve timestamps in reject files 2009-04-07 22:03:49 +02:00
Andreas Gruenbacher
aba1379506 Improve the description of --binary in patch.man 2009-04-07 13:58:07 +02:00
Andreas Gruenbacher
ad10c164f3 Suppress some unwanted output 2009-04-07 02:44:45 +02:00
Andreas Gruenbacher
b7a82a44b8 Update NEWS 2009-04-07 02:12:46 +02:00
Andreas Gruenbacher
7a4abf4e56 Update .gitignore 2009-04-07 02:15:14 +02:00
Andreas Gruenbacher
657b2a86e7 Optionally also create bzip2 and xz tarballs 2009-04-07 02:01:34 +02:00
Andreas Gruenbacher
5e17eeea55 Fix out-of-tree builds 2009-04-07 01:45:24 +02:00
Andreas Gruenbacher
2782a52315 Adapt file_id_hasher() to Gnulib type change 2009-04-07 01:28:13 +02:00
Christian Franke
d35880278d patch -Z not working if timestamp contains seconds > 59.5
Hi,

this is from a recent discussion in the cygwin mailing list:
(http://cygwin.com/ml/cygwin/2006-04/msg00699.html)

The patch options -Z and -T do not set filetime if the seconds part
of the timestamp is greater 59.5. This is because maketime() does
not handle denormalized times and returns an error on tm_sec = 60.

The bug could also be reproduced with patch 2.5.9 on Linux.

It might be better to ignore the fractional part of the second at all.
This would make timestamps set by patch identical to those set by tar.

[agruen: Christian's second version of the patch.]
2009-04-06 17:57:50 +02:00
Andreas Gruenbacher
c7d14511bf Phrase things a little better 2009-04-06 16:54:28 +02:00
Andreas Gruenbacher
327c939155 Add config.guess and config.sub to the dist tarball 2009-04-06 13:02:51 +02:00
Andreas Gruenbacher
b3a9ff4f13 Fix the "patch would create" fix from 2009-03-28 2009-04-06 05:47:52 +02:00
Andreas Gruenbacher
fea737a1b5 Document that merging can be slow 2009-04-05 23:46:02 +02:00
Andreas Gruenbacher
a03f22893c Copyright notice updates 2009-04-05 21:12:30 +02:00
Andreas Gruenbacher
99c2da6f0b Add a similar asymmetric hunk check to locate_merge() 2009-04-05 20:40:55 +02:00
Andreas Gruenbacher
802b26e78d Revert (almost) to the original asymmetric hunk behavior and document that 2009-04-05 20:24:04 +02:00
Andreas Gruenbacher
018b7b56c0 Remove dir_name() and base_name() in create_backup(): too many problems 2009-04-05 19:39:06 +02:00
Andreas Gruenbacher
1d204bbab2 Don't assume the target directory exists when making a backup copy 2009-04-05 17:42:20 +02:00
Andreas Gruenbacher
b3fbd9a585 Update to the latest version of Gnulib 2009-04-05 08:18:21 +02:00
Andreas Gruenbacher
c3eec27d08 Remove m4/st_mtim.m4 (obsolete since 2009-03-28) 2009-04-05 08:13:07 +02:00
Andreas Gruenbacher
f3a61e5f3e Move all Gnulib files into gl/ 2009-04-05 08:13:07 +02:00
Andreas Gruenbacher
85cd8a4cfe Move all source and header files into src/ 2009-04-05 08:12:05 +02:00
Andreas Gruenbacher
4c5896b6c9 Add missing outstate->zero_output = false in merge_hunk() 2009-04-05 07:18:43 +02:00
Andreas Gruenbacher
0531b5645b Fix the check when we can skip creating parent directories 2009-04-05 06:54:54 +02:00
Andreas Gruenbacher
aad98f0a59 util.c: The read() return type is ssize_t 2009-04-04 17:57:11 +02:00
Andreas Gruenbacher
6b2ddf184b Fix two backup file creation bugs 2009-04-04 17:24:37 +02:00
Andreas Gruenbacher
4c570aa738 Add a note about locate_merge()'s requirements 2009-04-04 16:39:40 +02:00
Andreas Gruenbacher
9a76a5194c Add line number ranges to the --debug=2 output 2009-04-04 14:00:59 +02:00
Andreas Gruenbacher
1ce9b303ce If an asymmmetric hunk starts at a line > 1, it is not from the start of the file 2009-04-03 22:28:38 +02:00
Andreas Gruenbacher
c5f41b5c4c Add missing parentheses in merge.c 2009-04-03 18:59:44 +02:00
Andreas Gruenbacher
ccba56be0c Make the ed utility optional in the test suite 2009-04-03 18:53:13 +02:00
Andreas Gruenbacher
b45358fa11 Another minor merge message improvement 2009-04-03 15:58:39 +02:00
Andreas Gruenbacher
9e15efdd5e Slightly improved merge result reporting 2009-04-03 15:40:11 +02:00
Andreas Gruenbacher
a3b6c4bbe6 Update the NEWS file 2009-04-03 11:18:47 +02:00
Andreas Gruenbacher
863fbb0459 Update patch.man 2009-04-03 10:58:44 +02:00
Andreas Gruenbacher
71a9b5bd02 Add DESTDIR variable to specify an installation root prefix 2009-04-02 17:27:46 +02:00