git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robin Rosenberg <robin.rosenberg.lists@dewire.com>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: git@vger.kernel.org
Subject: Re: Show of hands, how many set USE_NSEC
Date: Wed, 13 Aug 2008 22:01:26 +0200	[thread overview]
Message-ID: <200808132201.26868.robin.rosenberg.lists@dewire.com> (raw)
In-Reply-To: <20080808163455.GE9152@spearce.org>

fredagen den 8 augusti 2008 18.34.55 skrev Shawn O. Pearce:
> How many users really build their Git with USE_NSEC=1?
> 
> I'm suspecting a status issue in jgit caused by jgit honoring a
> millisecond resolution on file modification timestamps, and the
> underlying filesystem supporting at least a 1/2 second (or finer)
> granularity, but C Git was built without USE_NSEC so it only honors
> 1 second granularity.
> 
> This can cause jgit to think a file is locally modified as the
> mtime has data in the tv_nsec field, but C Git set that to 0 in
> the index as USE_NSEC wasn't enabled at build time.
When jgit finds an index entry with zero nsec it ignores the subsecond
portion of the file timestamp when comparing.

-- robin

      parent reply	other threads:[~2008-08-13 20:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-08 16:34 Show of hands, how many set USE_NSEC Shawn O. Pearce
2008-08-08 16:55 ` Johannes Schindelin
2008-08-08 16:57   ` Shawn O. Pearce
2008-08-08 17:42     ` Linus Torvalds
2008-08-08 17:52       ` Shawn O. Pearce
2008-08-08 18:00         ` Linus Torvalds
2008-08-13 20:01 ` Robin Rosenberg [this message]

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=200808132201.26868.robin.rosenberg.lists@dewire.com \
    --to=robin.rosenberg.lists@dewire.com \
    --cc=git@vger.kernel.org \
    --cc=spearce@spearce.org \
    /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).