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

Re: gc/repack has no option to lose grafted parents

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 6, 2014, 23:26 UTC
Message-ID
<xmqqwqg6vrht.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CACPiFCLqa=ZQM6Azh2G5hwBCMx96Cxa5BMN=-2aCy5x=YhBpGg@mail.gmail.com>
Martin Langhoff <martin.langhoff@gmail.com> writes:
Show 8 quoted lines
> Back in http://git.661346.n2.nabble.com/PATCH-0-2-Make-git-gc-more-robust-with-regard-to-grafts-td3310281.html
> we got gc/repack to be safer for users who might be shooting
> themselves in the foot.
>
> Would a patch be welcome to add --discard-grafted-objects ? or
> --keep-real-parents=idontthinkso ?
>
> cheers,

Given that we in general frown upon long-term use of grafts (or "replace" for that matter), I am not sure if we want to go in that direction.

Just a knee-jerk reaction, though.
Previous: Martin LanghoffNext: Martin Langhoff
Message 2 of 4 in “gc/repack has no option to lose grafted parents”
  1. Martin LanghoffMar 6, 2014
  2. Junio C HamanoMar 6, 2014
  3. Martin LanghoffMar 6, 2014
  4. Duy NguyenMar 7, 2014

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.