Home Home > GIT Browse
summaryrefslogtreecommitdiff
blob: fde07d91fda102e32a165b27e4733a3b33e29784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
#
# keep noise between two revisions of a patch small:
# fixed sort order
# fixed filenames a/b, requires quilt 0.46+
# no timestamps
# diffstat to get a quick overview what files get modified
# 
export LC_ALL=C
export LANG=C

current=` quilt top `
case "$current" in
*/patches.kernel.org/*)
	echo "Will not touch kernel.org patch '$current' because it will disappear soon."
	exit 0
	;;
*/patches.xen/*)
	# Preserve file order in xen patches
	;;
*)
	# Sort files in other patches
	opt_sort=--sort
	;;
esac

quilt refresh \
	-U 3 \
	--no-timestamps \
	--no-index \
	--diffstat \
	$opt_sort \
	--backup \
	-p ab