]> git.ipfire.org Git - thirdparty/git.git/commit
environment: reorder header to split out `the_repository`-free section
authorPatrick Steinhardt <ps@pks.im>
Thu, 12 Sep 2024 11:29:59 +0000 (13:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Sep 2024 17:15:42 +0000 (10:15 -0700)
commitf2d70847bd21f00045700aebca023f9c07ba87ac
tree4c7a17ab682c5690475997d720449e5671dac069
parenta52beae3a319e8133be0fe245e5fb3b9e7d8d9fb
environment: reorder header to split out `the_repository`-free section

Reorder the "environment.h" header such that declarations which are free
from `the_repository` come before those which aren't. The new structure
is now:

    - Defines for environment variable names.

    - Things which do not rely on a repository.

    - Things which do, including those that implicitly rely on a parsed
      repository. This includes for example variables which get
      populated when reading repository config.

This will allow us to guard the last category of declarations with
`USE_THE_REPOSITORY_VARIABLE`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
environment.h