09add31459583ffc1d70721fae4c464a54d3460f
[lttv.git] / scripts / svn-diff
1 #! /bin/sh
2
3 # wrapper for svn diff command
4 #
5 # svn always call this with:
6 # $1 = -u
7 # $2 = -L
8 # $3 = left file label
9 # $4 = -L
10 # $5 = right file label
11 # $6 = left file name
12 # $7 = right file name
13
14 OLDDIR=a
15 NEWDIR=b
16
17 exec /usr/bin/diff -up "$1" "$2" "$3" "$4" "$5" "$6" "$7" | \
18 sed -e "s/^--- \([^\/].*\)/--- $OLDDIR\/\1/" | \
19 sed -e "s/^+++ \([^\/].*\)/+++ $NEWDIR\/\1/"
20
This page took 0.029147 seconds and 3 git commands to generate.