Re: [RFC PATCH] index-pack: optionally allow duplicate objects
Junio C Hamano <[email protected]> Tue, 28 Jul 2026 18:41:34 -0700
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <[email protected]> |
[email protected] writes: > Signed-off-by: Friel <[email protected]> > --- > Applies on top of tb/pack-with-duplicates. I am really reluctant to take us in this direction. The last time I had a deep discussion on this was with Shawn Pearce (so those who knew him can tell how long ago that was), and the essence of his suggestion was that allowing malformed or invalid packfiles is a slippery slope. They complicate everything, from delta cycle detection to ensuring that repository data stays healthy. Changes that help us detect such a broken pack as early as possible and prevent it from entering your repository are very much welcome. Changes that accept such a broken pack as if nothing were wrong, not so much. Thanks.