Thread (74 messages) flat view 74 messages, 4 authors, 3d ago

Re: [GSoC PATCH v4 6/7] builtin/repack: add guards for --drop-filtered

From: Siddharth Shrimali <hidden>
Date: 2026-08-12 19:46:08

Hey Christian,
On Wed, 12 Aug 2026 at 23:11, Christian Couder
[off-list ref] wrote:
On Mon, Aug 10, 2026 at 7:41 PM Siddharth Shrimali
[off-list ref] wrote:
quoted
+                               die(_("--drop-filtered cannot be used while another operation is in progress"));
Nit: I wonder if something like die_if_some_operation_in_progress()
from builtin/checkout.c could be used to improve on the error message.
die_if_some_operation_in_progress() does check the set of in-progress states,
so it is a good fit conceptually, but it is currently "static" in
builtin/checkout.c
and uses the_repository, whereas the repack guard works on an explicit
"repo".
If we want to use it, we could extract it to a shared location(wt-status.c),
make it non-static, and take a "struct repository *", which does not feel
like a part of this series.

So for v5, I will keep the explicit repo-based check but improve the error
message, and we could do the extraction as a separate follow-up by first
creating a new patch, and then use it with the othr future changes, if
that sounds
good :)

Thanks,
Siddharth Shrimali
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help