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.