Re: How do I...
- From
David Woodhouse <dwmw2@infradead.org>
- Date
- May 6, 2005, 23:20 UTC
- Message-ID
- <1115421642.29495.53.camel@localhost.localdomain>
- In-Reply-To
- <Pine.LNX.4.58.0505061552140.2233@ppc970.osdl.org>
On Fri, 2005-05-06 at 15:57 -0700, Linus Torvalds wrote:
> To do that, you'd just have to always show the commit/parent pairs, > regardless of whether it had a difference or not.
Nah, you just prune the commits from which aren't interesting, then dump the graph you're left with. So instead of printing just the immediate parent(s) for each interesting commit, you print the "nearest interesting ancestor(s)".
Take copy of rev-tree, let it mark commits as interesting if they touch the file(s) in question, then effectively perform a list_del() on any commit which _isn't_ interesting, and any merge which merges only uninteresting commits... then dump the resulting pruned graph.
-- dwmw2