git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Shawn O. Pearce" <spearce@spearce.org>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: Show of hands, how many set USE_NSEC
Date: Fri, 8 Aug 2008 09:57:18 -0700	[thread overview]
Message-ID: <20080808165718.GG9152@spearce.org> (raw)
In-Reply-To: <alpine.DEB.1.00.0808081854120.24820@pacific.mpi-cbg.de.mpi-cbg.de>

Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> On Fri, 8 Aug 2008, Shawn O. Pearce wrote:
> 
> > I'm trying to come up with a sane way for jgit to realize it should 
> > truncate the milliseconds out of a timestamp before it comes to the 
> > index record.
> 
> You could add a config variable.

I was thinking a gitconfig (e.g. jcore.usensec) to enable the tv_nsec
usage (ok, well milliseconds only) in that repository, or globally
(if in ~/.gitconfig).

I also thought about looking at the index records to see if the
tv_nsec fields were always 0.  If all of them were 0 it would be a
good indication that the filesystem doesn't support that level of
granularity, or that whoever last wrote this index doesn't support
that level of granularity.  But this is a very expensive operation
to perform, relatively speaking.

> I hope that soon, we no longer need to 
> share the same index between C Git and JGit (I hope for a delta 
> pack implementation in Java...)

I fail to see what the DIRC (.git/index) file format and its cache
of tv_sec/tv_nsec has to do with delta pack implementation in Java.
Or are you saying that you could stop using C Git in certain cases
if you had delta pack generation in Java?

Really I'd just like to scrap the entire DIRC file format and do
it over again.  Having the flat namespace is nuts.  Linus and I
really disagree here, and since I have never produced code for C
Git to replace it (and prove why its better) I think he has me in
his kill file now.  :)

-- 
Shawn.

  reply	other threads:[~2008-08-08 16:58 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 [this message]
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

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=20080808165718.GG9152@spearce.org \
    --to=spearce@spearce.org \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.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).