summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2005-04-13 13:04:06 +0000
committerAndreas Gruenbacher <agruen@suse.de>2005-04-13 13:04:06 +0000
commite5cbacaf5622ad6d80bd314984eeed40f62cc08e (patch)
tree0bfbd5cbefd93757da1d52ed6579849e88fdb9e8 /scripts
parent0979b44e26ec23ab0445e7271932eba04fa604bb (diff)
downloadquilt-e5cbacaf5622ad6d80bd314984eeed40f62cc08e.tar.gz
- Add --sort options to the diff and refresh commands which
sorts files by filename. The default is to keep files in their original order whenever possible. - refresh command: add new files in sort order instead of the filesystem order. - diff command: output files in the order in which they show up in the patch instead of sorting them alphabetically. - Add sort testcase.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/patchfns.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index 8b58946..1ef7825 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -506,10 +506,16 @@ files_in_patch_ordered()
}
}
END {
+ i = 1
for (file in files) {
- if (!(file in printed))
- print file
+ if (!(file in printed)) {
+ new_files[i]=file
+ i++
+ }
}
+ n = asort(new_files)
+ for (i=1; i<=n; i++)
+ print new_files[i]
}
'
}