From: Eli Barzilay Date: Thu, 08 Jul 2010 02:38:06 GMT Subject: gitweb.perl suggestion Message-ID: <19509.14862.368282.470934@winooski.ccs.neu.edu> Currently, if I go to http://server/gitweb/project/ 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/.. 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!