From 0aa64572e76e3c710931a9bf0bedb211d3ee11d1 Mon Sep 17 00:00:00 2001 Message-Id: <0aa64572e76e3c710931a9bf0bedb211d3ee11d1.1747008891.git.mdw@distorted.org.uk> From: Mark Wooding Date: Fri, 2 Mar 2007 21:34:28 +0000 Subject: [PATCH] Add contrib/stg-show-old: show old version of a patch. Organization: Straylight/Edgeware From: Yann Dirson Signed-off-by: Yann Dirson --- contrib/stg-show-old | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 contrib/stg-show-old 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" -- [mdw]