Guilt v0.36-rc1
[guilt.git] / guilt-applied
blob896f706f4394fc039d0ee600ac80efc494a50474
1 #!/bin/sh
3 # Copyright (c) Josef "Jeff" Sipek, 2006-2013
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