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

Re: suggestions for gitweb

From
Jakub Narebski <jnareb@gmail.com>
Date
May 13, 2007, 00:41 UTC
Message-ID
<f25mic$1b1$2@sea.gmane.org>
In-Reply-To
<1f3701c794eb$5ff781b0$0200a8c0@AMD2500>
Aaron Gray wrote:
Show 9 quoted lines
>>> * the history/log pages could contain some statistics for the commits 
>>>   like the number of files changed and lines added/removed
>>
>> Probably.
>>
>> The three last items should be relatively easy, if somebody is
>> interested.  Pasky, Jakub, what do you think?
> 
> I would like to see lines of code and file sizes too.

Diff statistics for difftree / whatchanged, or diff shortstat is a bit costly, as it needs to generate and examine diff, and not only compare trees. Besides --numstat doesn't support renames well now, but that might not be an obstacle.

Lines of code and file sizes: file size needs additional invocation per each file for gitweb; it would be easier for cgit. Costly! Counting LOC is even more costly: take note that 1.) gitweb operates directly on repository / object database, and does not use working area, 2.) git is snapshot based and not changeset based.

Of course like in the case of other costly features this migh be enabled at will using %feature hash...

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Aaron GrayNext: Junio C Hamano
Message 4 of 21 in “suggestions for gitweb”
  1. Michael NiedermayerMay 12, 2007
  2. Junio C HamanoMay 12, 2007
  3. Aaron GrayMay 12, 2007
  4. Jakub NarebskiMay 13, 2007
  5. Junio C HamanoMay 13, 2007
  6. Jakub NarebskiMay 13, 2007
  7. Lars HjemliMay 13, 2007
  8. Suggestions for cgit (was: Re: suggestions for gitweb)Jakub Narebski, May 14, 2007
  9. Lars HjemliMay 14, 2007
  10. Lars HjemliMay 15, 2007
  11. Michael NiedermayerMay 13, 2007
  12. Jakub NarebskiMay 13, 2007
  13. Junio C HamanoMay 14, 2007
  14. Petr BaudisMay 14, 2007
  15. Michael NiedermayerMay 14, 2007
  16. Petr BaudisMay 14, 2007
  17. Michael NiedermayerMay 14, 2007
  18. Petr BaudisMay 14, 2007
  19. Jakub NarebskiMay 14, 2007
  20. Michael NiedermayerMay 14, 2007
  21. Jan HudecMay 15, 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.