From: Junio C Hamano Date: Fri, 27 Feb 2026 19:41:56 GMT Subject: Re: [PATCH v2 2/2] for-each-repo: work correctly in a worktree Message-ID: In-Reply-To: <1ee5927a-c90d-4a4b-a468-5be3644481bc@gmail.com> Phillip Wood writes: >>> * Note that the following options are not in local_repo_env: >>> * - EXEC_PATH_ENVIRONMENT persists --exec-path option. >>> */ >>> if (strncmp(local_repo_env[i], "CONFIG_", 7) && >> >> Minor nit: !starts_with() lets you avoid counting bytes yourself and >> hardcoding "7" here. > > More seriously it should be looking for strings starting with > "GIT_CONFIG_", not the name of the preprocessor definitions. Thanks. I missed that completely.