Re: [PATCH v4 0/8] rev-list: implement object type filter
- From
Jeff King <peff@peff.net>
- Date
- Apr 17, 2021, 09:01 UTC
- Message-ID
- <YHqkBFp+CGzWW4Xs@coredump.intra.peff.net>
- In-Reply-To
- <YHo3LO2RKfe0W/z7@satellite>
On Sat, Apr 17, 2021 at 02:17:32AM +0100, Ramsay Jones wrote:
Show 23 quoted lines
> On Fri, Apr 16, 2021 at 04:15:39PM -0700, Junio C Hamano wrote: > > Junio C Hamano <gitster@pobox.com> writes: > > > > > I think the only remaining issues are the comments on 5/8 on tests, > > > then? Hopefully we can have one more iteration to finalize the > > > topic and merge it down to 'next'? > > > > > > Thanks. > > > > I guess not. I am guessing this topic is responsible for > > > > https://github.com/git/git/runs/2366364023?check_suite_focus=true#step:4:115 > > Yes, I noticed this a few days ago, and tried the obvious fix (ie to > #include "cache.h" at the start of the list-objects-filter-options.h > header file) which does indeed work fine. However, I then thought that > moving the definition of 'enum object_type' (along with the TYPE_BITS > #define) to the 'object.h' header file (and #include "object.h" into > cache.h) would be a better idea... > > Having done that, I wondered how many '#include "cache.h"' could be > replaced by "object.h", and ... well, that was a few days ago and > something came up...
I agree that would probably be nice, but let's not hold up the topic. It can include "cache.h" like a bunch of other headers in the meantime.
(Too bad we can't just forward-declare the enum like we do for some other types, but it's impossible in C).
-Peff