From: Junio C Hamano Date: Thu, 03 Sep 2026 18:11:59 GMT Subject: Re: [PATCH v2 2/2] dir: find common prefix among non-exclude pathspec items Message-ID: In-Reply-To: <27FF785F-F5D5-44EC-93C2-5BD67BD99147@ytausch.de> Yannik Tausch writes: > +void test_dir__common_prefix_skips_excluded_pathspec_items(void) > +{ > + struct pathspec_item items[] = { > + { > + .match = "unrelated/path", > + .magic = PATHSPEC_EXCLUDE, > + .nowildcard_len = 14, > + }, This unfortunately triggers t/unit-tests/u-dir.c: In function 'test_dir__common_prefix_skips_excluded_pathspec_items': t/unit-tests/u-dir.c:53:34: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 53 | .match = "unrelated/path", | ^~~~~~~~~~~~~~~~ Other than that, looking good.