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

Re: [PATCH 3/3 (alternate)] gitweb: Mark "atnight" author/committer times also for 'localtime'

From
Kevin Cernekee <cernekee@gmail.com>
Date
Mar 18, 2011, 19:07 UTC
Message-ID
<AANLkTi=4wyph4fp7sbtw01+eb7FV=WVN4+dGcYiov35v@mail.gmail.com>
In-Reply-To
<201103181846.04979.jnareb@gmail.com>
On Fri, Mar 18, 2011 at 10:46 AM, Jakub Narebski <jnareb@gmail.com> wrote:
> Kevin, how about something like this instead?  This preserves _intent_
> for why there is local time beside GMT time when 'localtime' is disabled
> better, I think.

Fine with me. I had to dig around for a while before I could find an "atnight" commit, so I don't think this is something that is likely to occur often in my environment. But I can see how it would be useful to preserve the existing functionality.

I applied your patch and verified it in both localtime=0 and localtime=1 cases. So:

Tested-by: Kevin Cernekee <cernekee@gmail.com>
> Junio and Kevin, I am not sure if authorship should remain with Kevin,
> or should it revert to me; the solution is quite different.
I would suggest reverting it to you.
Show 9 quoted lines
> @@ -4003,15 +4003,23 @@ sub git_print_authorship_rows {
>                my %wd = parse_date($co->{"${who}_epoch"}, $co->{"${who}_tz"});
>                print "<tr><td>$who</td><td>" .
>                      format_search_author($co->{"${who}_name"}, $who,
> -                              esc_html($co->{"${who}_name"})) . " " .
> +                                          esc_html($co->{"${who}_name"})) . " " .
>                      format_search_author($co->{"${who}_email"}, $who,
> -                              esc_html("<" . $co->{"${who}_email"} . ">")) .
> +                                          esc_html("<" . $co->{"${who}_email"} . ">")) .

FWIW, this does create a few >80 character lines. But CodingGuidelines doesn't say whether that limit applies to Perl scripts or just C.

Previous: Jakub NarebskiNext: Junio C Hamano
Message 9 of 17 in “gitweb: fix #patchNN anchors when path_info is enabled”
  1. 1/3 gitweb: fix #patchNN anchors when path_info is enabledKevin Cernekee, Mar 17, 2011
  2. 2/3 gitweb: introduce localtime featureKevin Cernekee, Mar 17, 2011
  3. 2/3 gitweb: introduce localtime featureJakub Narebski, Mar 18, 2011
  4. Junio C HamanoMar 18, 2011
  5. Jakub NarebskiMar 18, 2011
  6. Junio C HamanoMar 18, 2011
  7. 3/3 gitweb: show alternate author/committer timesKevin Cernekee, Mar 17, 2011
  8. 3/3 gitweb: Mark "atnight" author/committer times also for 'localtime'Jakub Narebski, Mar 18, 2011
  9. Kevin CernekeeMar 18, 2011
  10. Junio C HamanoMar 18, 2011
  11. Jakub NarebskiMar 18, 2011
  12. Junio C HamanoMar 19, 2011
  13. 1/3 gitweb: fix #patchNN anchors when path_info is enabledJakub Narebski, Mar 18, 2011
  14. Kevin CernekeeMar 18, 2011
  15. 1/3 gitweb: fix #patchNN anchors when path_info is enabledJakub Narebski, Mar 18, 2011
  16. Junio C HamanoMar 18, 2011
  17. Jakub NarebskiMar 18, 2011

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.