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

gitweb.perl suggestion

From
Eli Barzilay <eli@barzilay.org>
Date
Jul 8, 2010, 02:38 UTC
Message-ID
<19509.14862.368282.470934@winooski.ccs.neu.edu>
Currently, if I go to
  http://server/gitweb/project/<commit-sha1>

I get to the shortlog page, which is not as useful as the commit page. But changing this to have a default `commit' action isn't right either since the shortlog is more appropriate with

  http://server/gitweb/project/<commit-sha1>..<other-commit-sha1>
So how about changing this:
  $input_params{'action'} ||= "shortlog";
to this:
  $input_params{'action'} ||= ((defined $parentrefname) ? "shortlog" : "commit");

which will make the first case show the commit, and the second show the shortlog?

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!
Next: Jakub Narebski
Message 1 of 5 in “gitweb.perl suggestion”
  1. Eli BarzilayJul 8, 2010
  2. Jakub NarebskiJul 8, 2010
  3. Eli BarzilayJul 8, 2010
  4. Jakub NarebskiJul 8, 2010
  5. Eli BarzilayJul 8, 2010

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.