git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Make list of features auto-managed.

From
Nicolas Pitre <nico@cam.org>
Date
Jun 22, 2007, 05:15 UTC
Message-ID
<alpine.LFD.0.99.0706220103090.20596@xanadu.home>
In-Reply-To
<20070622043329.GE17393@spearce.org>
On Fri, 22 Jun 2007, Shawn O. Pearce wrote:
Show 7 quoted lines
> 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
Previous: Shawn O. PearceNext: Josef Weidendorfer
Message 13 of 16 in “Introduce git version --list-features for porcelain use”
  1. Introduce git version --list-features for porcelain useShawn O. Pearce, Jun 21, 2007
  2. Junio C HamanoJun 21, 2007
  3. Shawn O. PearceJun 21, 2007
  4. Junio C HamanoJun 21, 2007
  5. Make list of features auto-managed.Junio C Hamano, Jun 21, 2007
  6. Junio C HamanoJun 21, 2007
  7. Nicolas PitreJun 21, 2007
  8. Junio C HamanoJun 21, 2007
  9. Shawn O. PearceJun 22, 2007
  10. Junio C HamanoJun 22, 2007
  11. Nicolas PitreJun 22, 2007
  12. Shawn O. PearceJun 22, 2007
  13. Nicolas PitreJun 22, 2007
  14. Josef WeidendorferJun 22, 2007
  15. Catalin MarinasJun 22, 2007
  16. Johannes SchindelinJun 21, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.