Merge branch 'man'
[guilt.git] / guilt-applied
blobead787b598a0c9c4e7e91bab98f37591f95f9ecc
1 #!/bin/sh
3 # Copyright (c) Josef "Jeff" Sipek, 2006-2011
6 USAGE="[-c]"
7 if [ -z "$GUILT_VERSION" ]; then
8 echo "Invoking `basename $0` directly is no longer supported." >&2
9 exit 1
12 _main() {
14 case $# in
16 # just output the regular series-style applied list
17 cat $applied
21 if [ "$1" != "-c" ]; then
22 usage
25 cat $applied | while read pname; do
26 git show-ref refs/patches/$branch/$pname | sed -e "s,refs/patches/$branch/,,"
27 done
31 usage
33 esac