Re: [PATCH v2] prune: mark rebase autostash and orig-head as reachable
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 9, 2024, 18:04 UTC
- Message-ID
- <xmqqjzndfr9d.fsf@gitster.g>
- In-Reply-To
- <pull.1656.v2.git.1707495579886.gitgitgadget@gmail.com>
"Phillip Wood via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 10 quoted lines
> +static void add_rebase_files(struct rev_info *revs)
> +{
> + struct strbuf buf = STRBUF_INIT;
> + size_t len;
> + const char *path[] = {
> + "rebase-apply/autostash",
> + "rebase-apply/orig-head",
> + "rebase-merge/autostash",
> + "rebase-merge/orig-head",
> + };Yuck.
Having this table here makes the sequencer subsystem even less maintainable than it already is. I wonder if we can at least somehow share some of these? #leftoverbits.
Thanks.