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

Re: Prototype git commit viewer

From
Paul Mackerras <paulus@samba.org>
Date
May 10, 2005, 00:33 UTC
Message-ID
<17024.316.828536.230448@cargo.ozlabs.ibm.com>
In-Reply-To
<m3fywwjktf.fsf@defiant.localdomain>
Krzysztof Halasa writes:
> Nice. I wonder how well would it work with a longer history, say all
> linux-2.[56] data. It takes gitk ~ 10 seconds to read ~ 1000 Linux
> commits from cache now, on my system.
Any arguments you give to gitk (other than -b and -d) get passed to
git-rev-tree, so you can just look at a section of the tree.  (I just
fixed a bug where it would crash if a commit had a parent that wasn't
listed in the git-rev-tree output, so refetch if you want to try it.)
So you can do e.g.
	gitk 88d7bd8cb9eb8d64bf7997600b0d64f7834047c5 \
		^a2755a80f40e5794ddc20e00f781af9d6320fafb

to see all the commits from v2.6.12-rc4 back to but not including v2.6.12-rc3 (unfortunately git-rev-tree seems not to cope with being given tags rather than commit ids).

Ultimately I want to add ways to select the range of commits you want to look at, e.g. by tags or by dates.

So as long as git-rev-tree remains fast as the history grows, gitk should remain usable for looking at reasonable-sized chunks of the history. There are various things I can do to make gitk faster, too, up to and including tcl bindings for the core git library. :)

Show 8 quoted lines
> In fact I'm thinking about something working with WWW browser. I've
> written a very simple experimental show-tree tool in C and it seems
> reading current Linux tree (no HTTP output yet) takes 0.065s with it.
> 
> Now I'm thinking about output language. (X)HTML seems to be not
> capable (I'm not HTML expert, please correct me if I'm wrong).
> 
> Any idea of what can I use?
I think I am even less of an HTML expert than you. :)

Regards, Paul.

Previous: Krzysztof HalasaNext: Greg KH
Message 8 of 9 in “Prototype git commit viewer”
  1. Paul MackerrasMay 9, 2005
  2. Junio C HamanoMay 9, 2005
  3. Petr BaudisMay 9, 2005
  4. Benjamin HerrenschmidtMay 9, 2005
  5. Paul MackerrasMay 9, 2005
  6. Petr BaudisMay 10, 2005
  7. Krzysztof HalasaMay 9, 2005
  8. Paul MackerrasMay 10, 2005
  9. Greg KHMay 10, 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.