From: Nicolas Pitre <nico@cam.org>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH] Make list of features auto-managed.
Date: Fri, 22 Jun 2007 01:15:15 -0400 (EDT) [thread overview]
Message-ID: <alpine.LFD.0.99.0706220103090.20596@xanadu.home> (raw)
In-Reply-To: <20070622043329.GE17393@spearce.org>
On Fri, 22 Jun 2007, Shawn O. Pearce wrote:
> Yes, however my point here is that I think we have historically
> been bad about making our software reasonably future-proof.
>
> The .pack file has a version field, with value 2. REF_DELTA is not
> supported by those binaries that predated its introduction. They are
> unable to properly unpack, index or read a packfile using REF_DELTA.
> Why did the .pack version stay at 2 if REF_DELTA is used in the file?
Because:
1) you wouldn't be able to properly unpack, index or read a pack file
using those deltas even with a different pack version _anyway_, and
2) the pack encoding itself has not changed at all.
And #2 is real. The introduction of an additional object type didn't
turn the pack content into something that old git versions could
(mis)interpret and be fooled by.
On the other hand, changes leading to pack version 3 really required a
pack version bump as those changes could really be misinterpreted by
older git versions.
The fact that old git versions call the pack corrupt when it contains
unknown objects is a problem with the error message not the pack
version. We even had a bad error message for unknown pack versions too
before you improved it.
Nicolas
next prev parent reply other threads:[~2007-06-22 5:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-21 4:59 [PATCH] Introduce git version --list-features for porcelain use Shawn O. Pearce
2007-06-21 5:47 ` Junio C Hamano
2007-06-21 6:10 ` Shawn O. Pearce
2007-06-21 7:02 ` Junio C Hamano
2007-06-21 9:00 ` [PATCH] Make list of features auto-managed Junio C Hamano
2007-06-21 9:18 ` Junio C Hamano
2007-06-21 15:55 ` Nicolas Pitre
2007-06-21 19:32 ` Junio C Hamano
2007-06-22 3:25 ` Shawn O. Pearce
2007-06-22 3:58 ` Junio C Hamano
2007-06-22 4:07 ` Nicolas Pitre
2007-06-22 4:33 ` Shawn O. Pearce
2007-06-22 5:15 ` Nicolas Pitre [this message]
2007-06-22 9:59 ` Josef Weidendorfer
2007-06-22 14:03 ` Catalin Marinas
2007-06-21 11:58 ` [PATCH] Introduce git version --list-features for porcelain use 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.LFD.0.99.0706220103090.20596@xanadu.home \
--to=nico@cam.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--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).