summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2003-10-26 13:31:25 +0000
committerAndreas Gruenbacher <agruen@suse.de>2003-10-26 13:31:25 +0000
commitfa8a69af263c29ac5243e21878f24a3b175e11e6 (patch)
tree81d526c8921e68900f526fc27aa8eb3853fd8a4d /scripts
parentb0069c28a0600dd5dc01d5feaa9e10a805700577 (diff)
downloadquilt-fa8a69af263c29ac5243e21878f24a3b175e11e6.tar.gz
- Rename snapshot directory from ".snap0" to ".snap".
- `quilt diff: Speed up file list generation in `quilt diff'. Don't use modified_files anymore. Instead, add first_modified_by function. I want to get rid of the patches_per_file cache; it sometimes was not brought up to date. Some cleanups. - Add test/snapshot.test. - Fix two errors in the date format in quilt.changes.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/patchfns.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index ccd5c42..361087c 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -718,6 +718,27 @@ gen_tempfile()
fi
@MKTEMP@ $dir ${1:-${TMPDIR:-/tmp}/quilt}.XXXXXX
}
+
+first_modified_by()
+{
+ local file=$1 patch
+ local -a patches
+ if [ $# -eq 0 ]
+ then
+ patches=( $(applied_patches) )
+ else
+ shift
+ patches=( "$@" )
+ fi
+ for patch in ${patches[@]}
+ do
+ if [ -f ".pc/$patch/$file" ]
+ then
+ echo $patch
+ fi
+ done
+ return 1
+}
### Local Variables:
### mode: shell-script
### End: