Re: [BUG] minor: wrong handling of GIT_AUTHOR_DATE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sat, 16 Aug 2008, Junio C Hamano wrote:
> 
> Is this because we do not initialize tm fields to "unknown" in the
> beginning?  I admit I haven't bothered to look at this part of the code
> for a looong time.

Indeed. The _exact_ date handling initializes the date to -1 (and the 
time to 0), but the approxidate thing defaults to "now" and then modifies 
that. 

Which is why we'd need to have a separate flags field for "I have 
initialized this field".

		Linus
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux