Re: [GSoC Patch 7/7] repo: add path.git-prefix path key validation
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 16, 2026, 03:23 UTC
- Message-ID
- <xmqqech3k47u.fsf@gitster.g>
- In-Reply-To
- <20260716012138.6714-8-jayatheerthkulkarni2005@gmail.com>
K Jayatheerth <jayatheerthkulkarni2005@gmail.com> writes:
Show 8 quoted lines
> diff --git a/builtin/repo.c b/builtin/repo.c > index a97ad71649..00d5064281 100644 > --- a/builtin/repo.c > +++ b/builtin/repo.c > @@ -1,3 +1,4 @@ > +#include "compat/posix.h" > #define USE_THE_REPOSITORY_VARIABLE > #include "builtin.h"
The first include must be <git-compat-util.h> or common include files that include <git-compat-util.h> as the first thing, like <builtin.h>.
As the file already includes <builtin.h>, extra inclusion of <compat/posix.h> before everything else is an absolute no-no.
By the way, I do not see any "validation" in the patch as the title claims. Perhaps retitle it to "repo: add path.git-prefix key" or something simpler like that?