File: guilt-applied

package info (click to toggle)
guilt 0.30-1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 668 kB
  • ctags: 71
  • sloc: sh: 1,941; makefile: 119; perl: 42
file content (28 lines) | stat: -rwxr-xr-x 387 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
#
# Copyright (c) Josef "Jeff" Sipek, 2006, 2007
#

USAGE="[-c]"
. `dirname $0`/guilt

case $# in
	0)
		# just output the regular series-style applied list
		cat $applied
	;;

	1)
		if [ "$1" != "-c" ]; then
			usage
		fi

		cat $applied | while read pname; do
			git show-ref refs/patches/$branch/$pname | sed -e "s,refs/patches/$branch/,,"
		done
	;;
	
	*)
		usage
		;;
esac