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

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
Previous: Martin Langhoff
Message 4 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.