Article URL: https://openai-git-upstream.openai.chatgpt.site/ Comments URL: https://news.ycombinator.com/item?id=49131737 Points: 9 # Comments: 1

A path-limited git stash expanded the full sparse index even when every requested path was already inside the sparse checkout. Keep the index sparse when possible, expand it when a pathspec needs the full index, and fix a related out-of-bounds read. Paths outside the sparse-checkout cone retain their existing behavior. Enable both existing pack optimizations during path-walk by collecting commit and tree information from its existing callback. Fall back to ordinary traversal when a bitmap cannot satisfy the request. Concurrent pack downloads could corrupt a partial pack, race cleanup, or mishandle a completed resume. Write each download at the correct offset, keep the pack available for indexing, and handle completed downloads. Accept an existing keep file only when its pack hash matches the advertised value. Duplicate objects in a pack could confuse reverse indexes, multi-pack indexes, and bitmap reuse. Match objects to their actual pack offsets, recover usable copies when resolving deltas, and avoid unsafe bitmap reuse. Fall back to ordinary packing when a selected index entry does not match its physical pack position. Some Git servers cannot accept REF_DELTA objects, but clients could not negotiate that restriction.