From: Linus Torvalds <torvalds@linux-foundation.org>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: Peter Eriksen <s022018@student.dtu.dk>,
Nicolas Pitre <nico@cam.org>,
git@vger.kernel.org
Subject: Re: Understanding version 4 packs
Date: Sun, 25 Mar 2007 10:09:14 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0703251004580.6730@woody.linux-foundation.org> (raw)
In-Reply-To: <20070325091806.GH25863@spearce.org>
On Sun, 25 Mar 2007, Shawn O. Pearce wrote:
> >
> > What happens to the paths, that do not have a correponding entry in the
> > path name table, because they are not among the 65535 most frequent
> > paths in the pack?
>
> They don't appear in the table. And any tree that uses them is
> forced to use the "legacy" OBJ_TREE encoding. Which is what we
> have now in pack v2, and in loose objects.
Would it hurt too much to just make it four bytes, and avoid that issue?
Special cases - and *especially* special cases that are hard to trigger in
the first place - equal bugs. And bugs are much much worse than trying to
save a little bit of space.
> The author_time field is not present if flags & 128 is true.
> If flags & 128 is false, its present, and uses the same encoding
> as commit_time. Why is this field optional? Because its not
> uncommon for it to match commit_time! ;-)
If the author time is the same as the commit time, most of the time the
author is the same as the committer too, no? So the field should be
conditional not for the author_time, but for the combination, no?
Our email-parsing tools (which is the most common reason for a committer
not being the same as the author) all take the author date from the email.
So I don't think author_time == committer_time except when the committer
and the author are one and the same person.
Linus
next prev parent reply other threads:[~2007-03-25 17:09 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-24 20:23 Understanding version 4 packs Peter Eriksen
2007-03-24 23:24 ` Nicolas Pitre
2007-03-25 8:35 ` Peter Eriksen
2007-03-25 9:18 ` Shawn O. Pearce
2007-03-25 17:09 ` Linus Torvalds [this message]
2007-03-25 20:31 ` Shawn O. Pearce
2007-03-26 1:12 ` Nicolas Pitre
2007-03-26 2:02 ` Shawn O. Pearce
2007-03-26 8:49 ` Jakub Narebski
2007-03-26 14:01 ` Nicolas Pitre
2007-03-26 12:16 ` Marco Costalba
2007-03-26 14:27 ` Nicolas Pitre
2007-03-26 17:10 ` Marco Costalba
2007-03-26 18:15 ` Nicolas Pitre
2007-03-26 18:43 ` Nicolas Pitre
2007-03-27 6:46 ` Marco Costalba
2007-03-27 6:55 ` Shawn O. Pearce
2007-03-25 8:46 ` Shawn O. Pearce
2007-03-25 9:40 ` Shawn O. Pearce
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=Pine.LNX.4.64.0703251004580.6730@woody.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=git@vger.kernel.org \
--cc=nico@cam.org \
--cc=s022018@student.dtu.dk \
--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).