This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU patch".
The branch, testing has been created
at ca0e8d406a09d90677f7247b15305646c2d2add4 (commit)
- Log -----------------------------------------------------------------
commit ca0e8d406a09d90677f7247b15305646c2d2add4
Author: Andreas Gruenbacher
Date: Fri Apr 13 01:51:09 2012 +0200
Create and delete output files at the very end in git-style diffs
* bootstrap.conf (gnulib_modules): Add linked-list and xlist modules.
* src/patch.c: (have_git_diff): Remember the current kind of patch here (normal
or git-style).
(deferred_output_files): List of output files to be created later.
(main): Initialize the deferred output file table. Process deferred output
file list when switching from git-style patches to normal patches and when
reaching the end of the patch file.
(output_file_now): Renamed from output_file().
(deferred_output_file): New struct.
(output_file_later, dispose_deferred_output_file,
init_deferred_output_files, output_deferred_output_files,
forget_deferred_output_files): New functions.
(output_file): New function for creating output immediately (normal patchs) or
deferring that until later (git-style patches).
(cleanup): Clean up all deferred temporary files, too.
* tests/Makefile-am (XFAIL_TESTS): Remove criss-cross; this test case works now.
* tests/mixed-patch-types: Patch files that change from normal to git-style, or
from git-style to normal.
* tests/Makefile.am (TESTS): Add the new test.
commit 0023cb71f9cae6b890a6726c019ada3f6ebe96e6
Author: Andreas Gruenbacher
Date: Fri Apr 13 16:54:57 2012 +0200
Optionally return output file stats from move_file()
* src/util.c (move_file): Add to_st parameter: if not NULL, return stats of the
output file.
* src/patch.c (main, output_file): Pass NULL as move_file()'s to_st parameter.
commit 0b161baa21ce8697137fb64a39bab0bbf5e3c254
Author: Andreas Gruenbacher
Date: Fri Apr 13 16:17:33 2012 +0200
Turn the file id cache into a separate module
* src/file_ids.c: Maintain a hash table of file ids (code mostly moved here
from util.c).
* src/file_ids.h: Declarations for src/file_ids.c.
* src/Makefile.am (patch_SOURCES): Add src/file_ids.c and src/file_ids.h.
* src/patch.c (main): Initialize file_id_table directly. Replace
file_already_seen() with file_id_exists().
* src/util.c: (create_backup_copy): Replace insert_file() with
insert_file_id(), and file_already_seen() with file_id_exists().
(move_file): Likewise.
* src/util.c: Remove code which is now in src/file_ids.c.
* src/util.h: Declare file_id_table here. Remove obsolete prototypes.
commit feb3970f7f0b95e59c469f0c39658a13de75098b
Author: Andreas Gruenbacher
Date: Thu Apr 12 22:54:19 2012 +0200
Create and delete new output files in a single function
* src/patch.c (output_file): New function for creating or deleting a new output
file and backing the old file up as needed.
(main): Use the new function.
commit 9caae69de385bea7194cfece92cf0d3f52faf837
Author: Andreas Gruenbacher
Date: Thu Apr 12 02:26:25 2012 +0200
Export the patch type
* src/pch.c (p_git_diff): New global variable.
(intuit_diff_type): Use p_git_diff instead of a local variable.
(pch_git_diff): New function.
commit 2fe9f5e247fac0502c7038de7f1de9a7eeca5611
Author: Andreas Gruenbacher
Date: Thu Apr 12 22:09:07 2012 +0200
Remove invalid symlink test case
* tests/symlinks: Remove test case which deletes and then recreates a symlink:
all patches in a git-style input file must refer to the "before" state; the
test case is invalid.