[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Show patch applied to a file

From: Gergely Nagy
Subject: Re: [Gnu-arch-users] Show patch applied to a file
Date: Wed, 12 May 2004 20:41:06 +0200
User-agent: Mutt/1.3.28i

> My thoughts exactly.  I guess our emails crossed like ships in the night.

/me buys some heavy lights so we'll see each other even in the darkes
night >;]

> >Something like this should do the trick:
> >
> >#! /bin/sh
> >
> >ppl=$(tla parse-package-name -l $1)
> >ppl="$(tla parse-package-name --package-version $1)--patch-$(expr 
> >${pl#patch-} - 1)"
> >
> >tla delta --diffs $ppl $1 | filterdiff -p1 -i "$2"
> My first attempt used filterdiff, but I couldn't get it to work straight 
> off, so I fell back on diffing the file-find output.  Your solution 
> looks nice, and it would be handly to apply to show-rev as well.  Care 
> to contribute a script (or aba-lib addition)?

If I don't forget, I'll do that tomorrow or so.

(/me scribbles stuff to a piece of paper and hangs it onto his monitor)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]