Re: gc/repack has no option to lose grafted parents
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Mar 7, 2014, 00:47 UTC
- Message-ID
- <CACsJy8BrnKPu=Uf5Qy1KoccorBJ43yo+R9P3PyVAeNU9FuCy6Q@mail.gmail.com>
- In-Reply-To
- <CACPiFCLgoGP59sW73YFCt8Wq4hpxZUb0PBF-DzHz0JdxrYo4rw@mail.gmail.com>
On Fri, Mar 7, 2014 at 6:36 AM, Martin Langhoff <martin.langhoff@gmail.com> wrote:
Show 12 quoted lines
> On Thu, Mar 6, 2014 at 6:26 PM, Junio C Hamano <gitster@pobox.com> wrote: >> 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. > > Fair enough. > > If I state my actual goals -- discarding old, uninteresting history, > in a "rolling" fashion? (periodically using a script that says "forget > anything older than one month") -- is there a better way?
Convert it to a shallow repository? Either you clone it and do "fetch --depth=XXX && prune", or you manipulate $GIT_DIR/shallow directly then prune (no worse than editing grafts, I think).
-- Duy