git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gitweb.perl suggestion
@ 2010-07-08  2:38 Eli Barzilay
  2010-07-08 15:30 ` Jakub Narebski
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Barzilay @ 2010-07-08  2:38 UTC (permalink / raw)
  To: git

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!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-07-08 19:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-08  2:38 gitweb.perl suggestion Eli Barzilay
2010-07-08 15:30 ` Jakub Narebski
2010-07-08 17:34   ` Eli Barzilay
2010-07-08 19:01     ` Jakub Narebski
2010-07-08 19:05       ` Eli Barzilay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).