Re: [PATCH v2 00/20] Introduce `USE_THE_REPOSITORY_VARIABLE` macro
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 13, 2024, 23:18 UTC
- Message-ID
- <CAPc5daUpzc+FDTH4-ajjf6ctnchE5Z6mHVvpm0qnbPLup18ykg@mail.gmail.com>
- In-Reply-To
- <b69449d0-46f4-448e-b80e-002a8b5c4e1f@ramsayjones.plus.com>
On Thu, Jun 13, 2024 at 4:15 PM Ramsay Jones <ramsay@ramsayjones.plus.com> wrote:
> > Hmm, odd; isn't the declaration of 'the_repository' from > the "repository.h" header file visible at this point?
No. The declaration is guarded with USE_THE_REPOSITORY_VARIABLE CPP macro in the header, and repository.c does not define it.