From: Yann Dirson Date: Fri, 2 Mar 2007 21:34:29 +0000 (+0000) Subject: Add contrib/stg-mdiff: display diffs of diffs. X-Git-Tag: v0.14.3~303 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/92172b2bce00ede0e886681deb00f378cf0db475 Add contrib/stg-mdiff: display diffs of diffs. Signed-off-by: Yann Dirson --- diff --git a/contrib/stg-mdiff b/contrib/stg-mdiff new file mode 100755 index 0000000..cd0c678 --- /dev/null +++ b/contrib/stg-mdiff @@ -0,0 +1,23 @@ +#!/bin/bash +set -e + +# stg-mdiff - display meta-diffs, ie. diffs of diffs + +# Main use: show evolutions of a patch. +# eg. stg-mdiff foo@stable foo +# stg-mdiff foo 012345567ABCD # sha1 for "foo" as integrated upstream + +# Copyright (c) 2007 Yann Dirson +# Subject to the GNU GPL, version 2. + +usage() +{ + echo "Usage: $(basename $0) " + exit 1 +} + +if [ "$#" != 2 ]; then + usage +fi + +colordiff -u <(stg show "$1") <(stg show "$2") | less -RFX