[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: Aaron Bentley
Subject: Re: [Gnu-arch-users] Show patch applied to a file
Date: Wed, 12 May 2004 13:59:43 -0400
User-agent: Mozilla Thunderbird 0.5 (X11/20040309)

Gergely Nagy wrote:
You can use "tla delta --diffs $version--patch-116 $version--patch-117"

[ .. ]

It would be nice to have "tla show-patch $version--patch-117" and limit the scope of the output to a specific file.

That sounds like a nice addon to aba

My thoughts exactly.  I guess our emails crossed like ships in the 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-} - 

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)?

Aaron Bentley
Director of Technology
Panometrics, Inc.

reply via email to

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