chiark / gitweb /
Clear up the semantics of Series.new_patch
[stgit] / contrib / stg-show-old
1 #!/bin/sh
2 set -e
3
4 # stg-show-old - mini helper to look at the previous version of a
5 # patch (current one by default)
6
7 # Copyright (c) 2006-2007 Yann Dirson <ydirson@altern.org>
8 # Subject to the GNU GPL, version 2.
9
10 [ "$#" -le 1 ] || { echo >&2 "Usage: $(basename $0) [<patch>]"; exit 1; }
11 patch="$1"
12
13 stg show "${patch}//top.old"