From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Andrew Rodland <andrew@cleverdomain.org>, git@vger.kernel.org
Subject: Re: USE_NSEC bug?
Date: Wed, 20 Mar 2013 13:09:57 -0400 [thread overview]
Message-ID: <20130320170957.GA21350@sigill.intra.peff.net> (raw)
In-Reply-To: <7vppyuf1f5.fsf@alter.siamese.dyndns.org>
On Wed, Mar 20, 2013 at 10:04:14AM -0700, Junio C Hamano wrote:
> Jeff King <peff@peff.net> writes:
>
> > But maybe there is some subtle reason I'm missing for having the two
> > options separate.
>
> The closest I found was c06ff4908bf9 (Record ns-timestamps if
> possible, but do not use it without USE_NSEC, 2009-03-04).
>
> commit c06ff4908bf9ad8bf2448439a3574321c9399b17
> Author: Kjetil Barvik <barvik@broadpark.no>
> Date: Wed Mar 4 18:47:40 2009 +0100
>
> Record ns-timestamps if possible, but do not use it without USE_NSEC
>
> Traditionally, the lack of USE_NSEC meant "do not record nor use the
> nanosecond resolution part of the file timestamps". To avoid problems on
> filesystems that lose the ns part when the metadata is flushed to the disk
> and then later read back in, disabling USE_NSEC has been a good idea in
> general.
>
> If you are on a filesystem without such an issue, it does not hurt to read
> and store them in the cached stat data in the index entries even if your
> git is compiled without USE_NSEC. The index left with such a version of
> git can be read by git compiled with USE_NSEC and it can make use of the
> nanosecond part to optimize the check to see if the path on the filesystem
> hsa been modified since we last looked at.
Thanks, I suspected that might be the reason. IMHO it is not a big win,
as you would just refresh the index when using the version compiled with
USE_NSEC (so it really only helps you if you are frequently switching
between the two versions, which seems silly).
And the cost is that we have another Makefile knob people need to tweak
that would not otherwise need to be there. Which can be annoying, but is
also not that huge a cost to deal with (we might want to improve the
configure script or something, though).
I admit I don't care too much either way.
-Peff
next prev parent reply other threads:[~2013-03-20 17:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-20 6:36 USE_NSEC bug? Andrew Rodland
2013-03-20 7:53 ` Jeff King
2013-03-20 17:04 ` Junio C Hamano
2013-03-20 17:09 ` Jeff King [this message]
2013-03-20 17:31 ` Junio C Hamano
2013-03-20 18:22 ` Andrew Rodland
2013-03-20 18:30 ` Jeff King
2013-03-20 18:52 ` Junio C Hamano
2013-03-20 19:00 ` Jeff King
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=20130320170957.GA21350@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=andrew@cleverdomain.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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;
as well as URLs for NNTP newsgroup(s).