From: Yann Dirson Date: Thu, 01 Mar 2007 23:03:45 GMT Subject: [PATCH 2/8] Add contrib/stg-show-old: show old version of a patch. Message-ID: <20070301230345.32459.79608.stgit@gandelf.nowhere.earth> In-Reply-To: <20070301225651.32459.89156.stgit@gandelf.nowhere.earth> Signed-off-by: Yann Dirson --- contrib/stg-show-old | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/contrib/stg-show-old b/contrib/stg-show-old new file mode 100755 index 0000000..acf4e7c --- /dev/null +++ b/contrib/stg-show-old @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +# stg-show-old - mini helper to look at the previous version of a +# patch (current one by default) + +# Copyright (c) 2006-2007 Yann Dirson +# Subject to the GNU GPL, version 2. + +[ "$#" -le 1 ] || { echo >&2 "Usage: $(basename $0) []"; exit 1; } +patch="$1" + +stg show "${patch}//top.old"