git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Linus TorvaldsNext: Linus Torvalds
Message 18 of 24 in “How do I...”
  1. Frank SorensonMay 6, 2005
  2. Thomas GlanzmannMay 6, 2005
  3. Thomas GlanzmannMay 6, 2005
  4. Dave KleikampMay 6, 2005
  5. Frank SorensonMay 6, 2005
  6. Dave KleikampMay 6, 2005
  7. Frank SorensonMay 6, 2005
  8. Linus TorvaldsMay 6, 2005
  9. Junio C HamanoMay 6, 2005
  10. Frank SorensonMay 6, 2005
  11. Daniel BarkalowMay 6, 2005
  12. Frank SorensonMay 6, 2005
  13. Linus TorvaldsMay 6, 2005
  14. David WoodhouseMay 6, 2005
  15. Linus TorvaldsMay 6, 2005
  16. David WoodhouseMay 6, 2005
  17. Linus TorvaldsMay 6, 2005
  18. David WoodhouseMay 6, 2005
  19. Linus TorvaldsMay 6, 2005
  20. David WoodhouseMay 7, 2005
  21. Thomas KolejkaMay 6, 2005
  22. David WoodhouseMay 6, 2005
  23. Benjamin HerrenschmidtMay 7, 2005
  24. Linus TorvaldsMay 6, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.