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

Re: gitk-1.0 released

From
IMIngo Molnar <mingo@elte.hu>
Date
May 20, 2005, 11:22 UTC
Message-ID
<20050520112229.GA5606@elte.hu>
In-Reply-To
<17037.5109.556362.904185@cargo.ozlabs.ibm.com>
* Paul Mackerras <paulus@samba.org> wrote:
Show 9 quoted lines
> > (and the biggest missing feature of GIT right now is author + 
> > last-commit annotated file viewing which could be integrated into gitk 
> > a'ka BK's revtool: selecting a given line of the file would bring one to 
> > that commit, etc.)
> 
> Yes, indeed.  I'll have to think about how to do it in a responsive 
> fashion, since getting the necessary information involves reading all 
> the commits and all the tree objects back to the beginning of time, 
> AFAICS. [...]

i guess so. A possible solution seems to be to read every object starting at the oldest one (assuming it's possible to get a list of object IDs that are predecessors), and to split the oldest object up into 'line' objects, attaching the (same) object ID to every line. Then the algorithm would go forward in time and would process every diff from that point on, and would add/remove line objects, attaching the new object IDs as new lines get added. The resulting set of lines then contain all the metadata needed (== object ID they originate from).

i dont think other SCMs can do this much faster: you need to go back to the last (still relevant) version and have to process the deltas from that point on. Delta-based formats would be somewhat faster and easier to process, but probably not that much faster in terms of IO overhead.

	Ingo
Previous: Paul MackerrasNext: Ingo Molnar
Message 5 of 14 in “gitk-1.0 released”
  1. Paul MackerrasMay 19, 2005
  2. Ingo MolnarMay 19, 2005
  3. Ingo MolnarMay 19, 2005
  4. Paul MackerrasMay 19, 2005
  5. Ingo MolnarMay 20, 2005
  6. Ingo MolnarMay 20, 2005
  7. Kari HameenahoMay 20, 2005
  8. Linus TorvaldsMay 20, 2005
  9. Jon SeymourMay 21, 2005
  10. Linus TorvaldsMay 21, 2005
  11. Benjamin HerrenschmidtMay 19, 2005
  12. Frank SorensonMay 20, 2005
  13. waltMay 20, 2005
  14. Ingo MolnarMay 28, 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.