Re: [PATCH 03/31] config: don't implicitly use gitdir
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jun 8, 2017, 10:41 UTC
- Message-ID
- <alpine.DEB.2.21.1.1706081235130.171564@virtualbox>
- In-Reply-To
- <20170531214417.38857-4-bmwill@google.com>
Hi Brandon,
On Wed, 31 May 2017, Brandon Williams wrote:
Show 6 quoted lines
> Commit 2185fde56 (config: handle conditional include when $GIT_DIR is
> not set up) added a 'git_dir' field to the config_options struct. Let's
> use this option field explicitly all the time instead of occasionally
> falling back to calling 'git_pathdup("config")' to get the path to the
> local repository configuration. This allows 'go_git_config_sequence()'
> to not implicitly rely on global repository state.Oh wow. `git_pathdup()`...
Sadly, I lack the time to review the entire patch series, but this here change definitely looks correct to me.
Thanks, Dscho