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

Re: [Bug] git fetch --dry-run --filter makes changes to .git/config

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 18, 2025, 20:46 UTC
Message-ID
<xmqqecs37ali.fsf@gitster.g>
In-Reply-To
<20250918203916.GA1199728@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 7 quoted lines
> ... It is unfortunate that doing so updates the repo
> config, though. That may show a mismatch in how the promisor information
> is stored (it is really a property of the packfile in the object
> directory, but the config mechanism stores it in the main repo). But it
> is probably not worth trying to revisit at this point. It is only when
> you start to play weird games like "this repo's object directory is not
> $GIT_DIR/objects" that you run into these distinctions.

Hmph, but watching from the sidelines Patrick's topics that revolve around (re)defining the boundary and relationship among repository, object store, and on-disk packfiles with a more clearly defined abstractions like object_source, I am hoping that we somehow can find a good place to move this information out of the per-repo configuration to somewhere close to individual packs. I dunno.

Previous: Jeff KingNext: Kevin Puetz
Message 7 of 10 in “[Bug] git fetch --dry-run --filter makes changes to .git/config”
  1. Kevin PuetzSep 17, 2025
  2. brian m. carlsonSep 17, 2025
  3. Kevin PuetzSep 17, 2025
  4. Jeff KingSep 18, 2025
  5. Junio C HamanoSep 18, 2025
  6. Jeff KingSep 18, 2025
  7. Junio C HamanoSep 18, 2025
  8. Kevin PuetzSep 18, 2025
  9. rsbecker@nexbridge.comSep 18, 2025
  10. Kevin PuetzSep 19, 2025

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.