Skip to contentSkip to conversation

log-tree.c: date hardwired

DISCUSSION [email protected] 4 participants 6 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

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

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"j" == jidanni <[email protected]> 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.

#2 lore raw
Quoted 1 line · [email protected] 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.

#4 lore raw

Perhaps a comment could be added to the code as to the reason a date or that certain date is hardwired. Any reason would be satisfactory.

#5 lore raw
In reply to Alex Riesen
Quoted 5 lines · Alex Riesen

2009/1/18 <[email protected]>:

Quoted 2 lines

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 :-)