Re: Re-done kernel archive - real one?
- From
- Russell King <rmk@arm.linux.org.uk>
- Date
- Apr 17, 2005, 19:51 UTC
- Message-ID
- <20050417205149.E13233@flint.arm.linux.org.uk>
- In-Reply-To
- <Pine.LNX.4.58.0504171226530.7211@ppc970.osdl.org>
(Dropped HPA from the CC line - I think he was only copied for the master.kernel.org issues.)
On Sun, Apr 17, 2005 at 12:33:22PM -0700, Linus Torvalds wrote:
Show 16 quoted lines
> On Sun, 17 Apr 2005, Russell King wrote: > > I still need to work out how to make my noddy script follow different > > branches which may be present though. However, for my common work > > flow, it fits what I require. > > The way to handle that is that you need to > > - remember (or re-fetch) what the latest HEAD was that you merged with in > my tree. > > if you didn't remember, you can just get all my objects and do a > > merge-head $(cat .git/HEAD) $linus-current-head > > or something (using the current git archive that has a "merge-head" > program. That gives you the most recent common head.
My script currently sends between two commit-ids, so...
Show 9 quoted lines
> - use "rev-tree" to show reachability > > rev-tree $my-current-head $last-merge-head > | sort -n # sort by date rather than sha1 > | cut -d' ' -f2 # get the sha1 + "flags" mask > | grep :1 # show the ones that are only > # reachable from $my-current-head > > and you now have a nice list of sha1's ordered by date.
This will (and does) do exactly what I want. I'll also read into the above a request that you want it in forward date order. 8)
-- Russell King