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

Re: [RFC] Possible optimization for gitweb

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 19, 2006, 22:22 UTC
Message-ID
<em9oi5$72t$1@sea.gmane.org>
In-Reply-To
<7v1wmvpmef.fsf@assigned-by-dhcp.cox.net>
[Please Cc: git@vger.kernel.org]
Junio C Hamano wrote:
Show 11 quoted lines
> Robert Fitzsimons <robfitz@273k.net> writes:
> 
>> The new workflows I'm proposing would be:
>>      get/parse ~100 commit's using rev-list
>>      foreach commit
>>              output commit
> 
> Absolutely.
> 
> And Ok on rev-list part, but perhaps --skip would be more
> appropriate name.

The only problem that you can't use --parents with "history" view, because together with --full-history it shows also all merges (--full-history without --parents doesn't show merges which does not affect given file or directory; the sequence in which --parents and --full-history are taken is a bit strange to me). So you have to keep current parse_commit (or extend it), and if I remember correctly you do that.

I'm also for --skip (not --start-count), although... --start-count with --max-count seems more natural; one place it can be confusing is that we count skipped commits or not? I.e. we use --start-count=10 --max-count=20 to get second 10 of commits, or --skip=10 --max-count=10 to get second 10 of commits?

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Junio C HamanoNext: Robert Fitzsimons
Message 5 of 8 in “[RFC] Possible optimization for gitweb”
  1. Robert FitzsimonsDec 19, 2006
  2. Jakub NarebskiDec 19, 2006
  3. Robert FitzsimonsDec 20, 2006
  4. Junio C HamanoDec 19, 2006
  5. Jakub NarebskiDec 19, 2006
  6. rev-list: Add a new option --skip.Robert Fitzsimons, Dec 20, 2006
  7. Junio C HamanoDec 20, 2006
  8. rev-list: Document --skip and add test cases.Robert Fitzsimons, Dec 20, 2006

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.