chiark / gitweb /
Allow "branch --create" to be given a tag id
[stgit] / contrib / stg-show-old
CommitLineData
0aa64572
YD
1#!/bin/sh
2set -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; }
11patch="$1"
12
13stg show "${patch}//top.old"