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

Re: Efficient retrieval of commit log info

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Dec 12, 2007, 16:24 UTC
Message-ID
<alpine.LFD.0.9999.0712120819430.25032@woody.linux-foundation.org>
In-Reply-To
<34660cca0712120636w149e2a82h84609f8ac7c958a9@mail.gmail.com>
On Wed, 12 Dec 2007, Eirik Bj?rsn?s wrote:
> 
> Is it at all possible using the git network protocols to fetch just
> the commit log info, without transferring the contents?
>From a _protocol_ angle that's trivial (the git network protocol doesn't 

really care what it transfers, it just transfers objects), but no, we don't actually expose any capability like that. If you were to just want this privately, the quick hack is to just disable traversal of trees in builtin-pack-objects on the server side, but it sounds like you want to do this in general (not just with git and not just with a server you control), and if so, you're kind of screwed.

You could hack around it (very inefficiently) by parsing gitweb output, of course, but I bet that you'd probably get better performance just cloning the whole thing (which allows streaming, rather than trying to click through commits on gitweb)

		Linus
Previous: Santi Béjar
Message 8 of 8 in “Efficient retrieval of commit log info”
  1. Eirik BjørsnøsDec 12, 2007
  2. Johannes SchindelinDec 12, 2007
  3. Nicolas PitreDec 12, 2007
  4. Eirik BjørsnøsDec 12, 2007
  5. Jon SmirlDec 12, 2007
  6. Eirik BjørsnøsDec 12, 2007
  7. Santi BéjarDec 12, 2007
  8. Linus TorvaldsDec 12, 2007

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.