From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Tim Henigan <tim.henigan@gmail.com>
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [PATCH] Use time_t for timestamps returned by approxidate() instead of unsigned
Date: Sat, 24 Jan 2009 17:58:08 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.1.00.0901241757140.13232@racer> (raw)
In-Reply-To: <32c343770901240813k2eeb19b0q65b533f829cb44d4@mail.gmail.com>
Hi,
On Sat, 24 Jan 2009, Tim Henigan wrote:
> On Sat, Jan 24, 2009 at 1:27 AM, Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
> >
> > On Thu, 22 Jan 2009, Tim Henigan wrote:
> >
> > > Use time_t for timestamps returned by approxidate() instead of
> > > unsigned long. All references to approxidate were checked as well
> > > as references to OPT_DATE.
> >
> > Hmm. I vaguely remember Linus mentioning recently that unsigned long
> > is the appropriate data type for the Unix Epoch...
>
> You are correct. I just found a post on this list where Linus
> specifically rejected a similar patch from another contributor. A quote
> from https://kerneltrap.org/mailarchive/git/2008/11/6/4014124:
>
> " "time_t" is one of those totally broken unix types. The standards
> say that it's an "arithmetic" type, but leaves it open to be just
> about anything. Traditionally, it's a signed integer (bad), and in
> theory it could even be a floating point value, I think.
>
> And in _all_ such cases, it's actually better to cast it to
> "unsigned long" than keep time in a system-dependent format that is
> most likely either _already_ "unsigned long", or alternatively
> broken."
Thanks. I should have searched that post myself, but I was too tired...
> Should I update the GitWiki page to remove this Janitor task or do you
> keep it as a test to see if people are properly searching the mail
> archives?
Yes, please!
> Sorry to waste your time on the patch review.
Sorry that we wasted your time by letting that page go stale...
Ciao,
Dscho
next prev parent reply other threads:[~2009-01-24 16:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-22 23:07 [PATCH] Use time_t for timestamps returned by approxidate() instead of unsigned Tim Henigan
2009-01-24 5:22 ` Markus Heidelberg
2009-01-24 6:27 ` Johannes Schindelin
2009-01-24 16:13 ` Tim Henigan
2009-01-24 16:37 ` Wincent Colaiuta
2009-01-24 16:58 ` Johannes Schindelin [this message]
2009-01-24 17:14 ` Tim Henigan
2009-01-24 17:32 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.1.00.0901241757140.13232@racer \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=tim.henigan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox