> But I'd rather do:
> svn diff Makefile.in -rgcc_4_1_1_release
>
> I.e. no silly naming of the path from the trunk root to the file, and no
> repetition of the file name itself.

$ cat `which difftag`
#! /bin/sh
if echo "$1" | grep '-branch$' > /dev/null ; then
  subdir=branches
else
  subdir=tags
fi
oldurl=`svn info . | grep URL | awk '{print $2}' | \
        sed "s,\(/trunk\|/branches/[^/]*\),/$subdir/$1,"`
shift
svn diff --old=$oldurl --new=. "$@"

Paul

Reply via email to