[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 17:30:31 +0200 |
User-agent: |
Mutt/1.3.28i |
> >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
(http://sourcecontrol.net/~abentley/aba).
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"
Beware, I did not test the above, but it should work, methinks.
- [Gnu-arch-users] Show patch applied to a file, Milan Cvetkovic, 2004/05/11
- Re: [Gnu-arch-users] Show patch applied to a file, Robert Collins, 2004/05/12
- Re: [Gnu-arch-users] Show patch applied to a file, Gergely Nagy, 2004/05/13
- Re: [Gnu-arch-users] Show patch applied to a file, Robert Collins, 2004/05/13
- Re: [Gnu-arch-users] Show patch applied to a file, Gergely Nagy, 2004/05/13