threads / discuss / 17138

log-tree.c: date hardwired

Subject: log-tree.c: date hardwired

## tl;dr

6 messages between Jan 13, 2009 and Jan 18, 2009.

replies: 5people: 4as markdown or json

jidanni@jidanni.org· Jan 13, 2009, 03:13 UTC · lore

In log-tree.c: printf("From %s Mon Sep 17 00:00:00 2001\n", name); Wouldn't it be more aesthetically pleasing to use current local or UTC time? Or at least comment in the code that the date is hardwired like that in the fear that otherwise people will think it is the actual commit time. No, I can't think of any other tool that hardwires the From separators they produce.

jidanni@jidanni.org· Jan 17, 2009, 23:27 UTC · re: jidanni@jidanni.org · lore

Re: log-tree.c: date hardwired

Can I get a go-ahead from somebody for me to begin work on implementing a fix? (Yes, trivial.)

>>>>> "j" == jidanni  <jidanni@jidanni.org> writes:

j> In log-tree.c: printf("From %s Mon Sep 17 00:00:00 2001\n", name); j> Wouldn't it be more aesthetically pleasing to use current local or UTC time? j> Or at least comment in the code that the date is hardwired like that j> in the fear that otherwise people will think it is the actual commit time. j> No, I can't think of any other tool that hardwires the From separators j> they produce.

Sitaram Chamarty· Jan 18, 2009, 00:40 UTC · re: Alex Riesen · lore

Re: log-tree.c: date hardwired

On 2009-01-17, Alex Riesen <raa.lkml@gmail.com> wrote:
Show 5 quoted lines
> 2009/1/18  <jidanni@jidanni.org>:
>> Can I get a go-ahead from somebody for me to begin work
>> on implementing a fix?
>
> No. Try and guess why
OK, I'll bite...

Because it's only used as the date for the mbox format leader line, and not an actual email (RFC 822/2822) header line? And in that format it represents "delivery date", which is irrelevant for stuff you're generating to be sent out anyway, meaning this line doesn't actually get sent out to anyone when you mail your patches, so we don't care what it is.

I can't think of anything else, so if it isn't that please do tell. Not that I cared about it before, but once someone says "try and guess why" it somehow becomes important :-)

Junio C Hamano· Jan 18, 2009, 00:52 UTC · re: jidanni@jidanni.org · lore

Re: log-tree.c: date hardwired

jidanni@jidanni.org writes:
> Can I get a go-ahead from somebody for me to begin work on implementing a fix?
No, don't "fix" it.

Please keep it as a known constant. That way, you can come up with an /etc/magic entry to teach find(1) that it is not just a random mailbox but is an output from format-patch.

← back to recent threads