Jens Seidel wrote:
> On Tue, Jun 10, 2008 at 10:10:58AM +0200, Jens Seidel wrote:
>
>> I noticed that I had to rewrite my little vimdiff wrapper for svn diff
>> again for 1.5.x. In the past -u was provided as first argument, now it
>> isn't.
>>
>
> I also wonder why a temporary copy is provided to the diff command. This
> is probably required if the comparision is not against BASE.
> Nevertheless I like to edit the file in the diff viewer as well and have
> to parse option 2 or 4.
>
> Current parameters:
> #1=-L
> #2=../src/file.c (Revision 1584)
> #3=-L
> #4=../src/file.c (Arbeitskopie)
> #5=../src/.svn/text-base/file.c.svn-base
> #6=/tmp/svndiff.3.tmp
> #7=
> #8=
>
> my script:
>
> #!/bin/sh
> LEFT=${4}
> RIGHT=${5}
>
> LEFT=$(echo "$LEFT" | sed 's/[\t ]([^()]*)//')
> vimdiff "+set wrap" "+wincmd l" "+set wrap" "+wincmd h" $LEFT $RIGHT
>
That's just wrong. The contents of $6 and your computed $LEFT are not
necessarily the same.
-- Brane
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-06-10 12:13:57 CEST