summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Clean up legacy C codeJean Delvare2012-02-011-622/+0
| | | | | | | Finally get rid of the old C implementation of backup-files, together with all the related checks in configure and variables in Makefile. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* - No longer create backup files of new files with file mode 0.Andreas Gruenbacher2009-11-221-2/+3
| | | | (This has been changed in GNU patch 2.6 as well.)
* Concurrent readdir() + unlink() compatibility fixAndreas Gruenbacher2009-06-151-15/+35
|
* Convert to git repository formatv0.48Andreas Gruenbacher2009-01-291-1/+0
|
* - Stop using cp -l: it doesn't fall back to doing a regular copyAndreas Gruenbacher2008-05-201-7/+17
| | | | | when hardlinks are not supported; on some types of filesystems like AFS and in some situtions, this is annoying.
* fixing quilt-importSatoru Takeuchi2007-10-061-1/+3
|
* fixing no-patch-applied cases.Satoru Takeuchi2007-10-061-35/+45
|
* support QUILT_PATCHES_PREFIXSatoru Takeuchi2007-10-061-1/+1
|
* Move quilt-mode-line definition to topleve.Satoru Takeuchi2007-07-211-2/+3
|
* - lib/backup-files.c: Do not modify the original file wheneverAndreas Gruenbacher2007-04-161-10/+16
| | | | | | | possible: previously, a ``quilt add'' usually linked the file to he backup and then copied the backup over the file to ensure a link count of one. Recognize this case, and create a copy in the first place instead.
* - Add quilt.el and its README file. (The emacs mode is not beingAndreas Gruenbacher2007-04-151-0/+486
| | | | installed properly, yet.)
* - lib/backup-files.c: Close files before rename; Windows won'tAndreas Gruenbacher2006-02-121-2/+8
| | | | rename open files.
* - bin/patch-wrapper.in: A wrapper to GNU patch that recognizes theAndreas Gruenbacher2006-02-061-5/+7
| | | | | | | | | | most common options and mimics GNU patch's behavior and output, and creates the quilt metadata as if quilt push was used to apply the patch. When options are used that this wrapper does not recognize, GNU patch is used directly, and no quilt metadata will get created. - lib/backup-files.c: Don't fail if a directory specified with -B does not exist.
* - Allow backup-files to build on windows using the MinGW compiler.Andreas Gruenbacher2006-01-301-0/+11
|
* - lib/backup-files.c: Tru64 does not have snprintf. (Reported byAndreas Gruenbacher2006-01-301-5/+3
| | | | John Vandenberg).
* - Change the default PATH_MAX from 4095 to 4096.Andreas Gruenbacher2006-01-261-2/+2
| | | | - sizeof(char) == 1.
* - lib/backup-files.c: Fix usage line and help text.Jean Delvare2006-01-261-10/+14
| | | | | - lib/backup-files.c: Improve recursive processing by avoiding repeated realloc and strlen calls. Hardly measurable though.
* - Use perror(progname) instead of perror(NULL).Andreas Gruenbacher2006-01-261-1/+1
|
* - Also check for access(path, R_OK|X_OK) before visiting all theAndreas Gruenbacher2006-01-261-1/+1
| | | | | files in a directory: this avoids an error message for each file in a non-executable directory.
* - lib/backup-files.c: Stop using ftw and implement our own dirAndreas Gruenbacher2006-01-263-156/+68
| | | | | walking: ftw is a portability nightmare. The foreachdir function is based a proposal from Gary V. Vaughan <gary@gnu.org>, thanks!
* - lib/backup-files.c: Fix memory leaks (markus@oberhumer.com).Andreas Gruenbacher2006-01-251-3/+4
|
* - lib/backup-files.c: Don't fail when link(1) returns ENOSYS, andAndreas Gruenbacher2006-01-251-1/+2
| | | | try to copy in that case.
* - lib/backup-files.c: Fix another missed optimization.Andreas Gruenbacher2006-01-251-2/+4
|
* - lib/backup-files.c: Several fixes from Markus as well.Andreas Gruenbacher2006-01-251-11/+37
|
* - lib/backup-files.c: Cleanups by Markus F.X.J. OberhumerAndreas Gruenbacher2006-01-251-19/+24
| | | | <markus@oberhumer.com>.
* - Add fallback ftw implementation for systems that don't have it.Andreas Gruenbacher2006-01-212-0/+139
|
* - Use ftw instead of nftw (some platforms don't have nftw).Andreas Gruenbacher2006-01-211-2/+2
|
* - lib/backup-files.c: Only create and remove parents that areAndreas Gruenbacher2006-01-211-23/+34
| | | | | missing or empty. Report errors in nftw. (Minor changes by agruen@suse.de).
* - Remove config.h, and use @DEFS@ in Makefile.in insteadAndreas Gruenbacher2005-09-181-7/+10
| | | | (Gary V. Vaughan <gary@gnu.org>).
* - lib/backup-files.c: add missing dependency on config.h. CheckAndreas Gruenbacher2005-09-181-8/+9
| | | | | for chmod and fchmod support. Remove two unnecessary chmod calls. - Makefile.in: fix cyclic dependency on Makefile.
* - lib/backup-files.c: use mktemp if mkstemp is not availableAndreas Gruenbacher2005-09-181-0/+5
| | | | (Gary V. Vaughan <gary@gnu.org>). Add a config.h.
* - lib/backup-files.c: switch from alloca to malloc for portability.Andreas Gruenbacher2005-09-181-29/+46
|
* - Fix a syntax error.Andreas Gruenbacher2005-01-271-1/+1
|
* - lib/backup-files.c: Remove unused command line option andAndreas Gruenbacher2005-01-271-9/+7
| | | | | | | | document the remaining options. - quilt/pop.in: Colorize this as well: "Patch attempted to create file *, which already exists." "can't find file to patch at input line *" "* out of * hunk ignored"
* - When applying a patch with -q and without -f no (individual)Andreas Gruenbacher2004-10-171-2/+11
| | | | | | | | | | | reject files are created, and the "patching file" comments are missing as well. In that case, we don't know wich files the "-- saving rejects to file /tmp/foo" comments belong to, and we can't fic them up. Remove them, instead. - Pop command: Touch files after they are restored so that tools like make don't get confused. - Update test cases. - Bump to version 0.37.
* - backup-file.c: Add code to recursively search .pc directories.Andreas Gruenbacher2004-06-061-21/+70
| | | | | | | | | | Add a "no-op" mode as default, and allow to just unlink files. - apatch/rpatch: let backup-files search .pc directories instead of generating temporary file lists. - rpatch/pop: unlink files of topmost patch after popping instead of unlinking at each step. - If QUILTRC is set in the environment, use this as the configuration file.
* - Fix from Dean Roehrich <roehrich@sgi.com>: Preserve file modeAndreas Gruenbacher2004-06-021-0/+2
| | | | of original file when creating backup files.
* - Fix a bug in backup-files.c (introduced just before).Andreas Gruenbacher2004-03-141-1/+1
|
* - Revert `quilt fork' to how it originally worked: fork theAndreas Gruenbacher2004-03-131-19/+89
| | | | | | | | | | | | | | *topmost* patch, not the next unapplied patch. Adapt the test suite accordingly. - Add flag to backup-files.c to make sure that files in the working tree have a link count of at most one. Use this where appropriate. - Fix a bug in `quilt snapshot': Taking snapshots caused files to get link counts bigger than one, so modifying them could cause multiple files to get modified. Speed up the command, too. - Update the documentation. Add example1.test from the documentation.
* - Remove .pc/*/.pc files, and adjust various scripts accordingly.Andreas Gruenbacher2003-10-281-12/+25
| | | | - Run test/one.test inside sub-directory.
* - Backup files were not reliably removed after restoring (this did notAndreas Gruenbacher2003-10-261-6/+4
| | | | matter with the .pc files).
* - lib/backup-files.c: Copy files if hard linking is not possible,Andreas Gruenbacher2003-07-191-18/+66
| | | | e.g., because the backups go to a ram disc, etc.
* Install binary backup-files into /usr/lib/quilt and the remaining scripts ↵Andreas Gruenbacher2003-01-315-1413/+0
| | | | under /usr/share/quilt/scripts.
* Add syntax highlighting tags for emacs and vimAndreas Gruenbacher2003-01-314-0/+16
|
* Change #\!@BASH@ to #\! @BASH@. It can look a bit stupid, but it's needed ↵Martin Quinson2003-01-313-3/+3
| | | | for maximal portability
* Fight lintian warning: Change #\!@BASH@ to a header explaining what it is ↵Martin Quinson2003-01-311-1/+2
| | | | and that it it should be sourced.
* Also substitute @MKTEMP@Andreas Gruenbacher2003-01-301-5/+5
|
* Quilt diff now accepts a list of files; add quilt.changes entry for previous ↵Andreas Gruenbacher2003-01-301-0/+11
| | | | file removal.
* Quilt refresh looses patch descriptionAndreas Gruenbacher2003-01-301-1/+1
|
* Add changelog and fix patch_description for "Index:" lines in patchesAndreas Gruenbacher2003-01-301-7/+7
|