Message ID | cover.1723540226.git.ps@pks.im (mailing list archive) |
---|---|
Headers | show |
Series | Stop using `the_repository` in "config.c" | expand |
Patrick Steinhardt <ps@pks.im> writes: > this is the second version of my patch series that drops the dependency > on `the_repository` in both "path.c" and "config.c". > > Changes compared to v1: > > - Various typo fixes in commit messages. > > - Rename `strbuf_git_common_pathv()` to `repo_common_pathv()`. > > - Reorder arguments of `strbuf_edit_interactively()` such that the > `struct repository` gets passed as first argument. > > - Document behaviour of `worktree_git_path()` when no worktree is > given. > > - Wrap some overly long lines. > > Thanks! Nicely done. I found that both of the two larger changes relative to the previous iteration are sensible.
Hi Patrick,
Glad to see us slowly getting rid of the global, `the_repository`! I had
missed your original series[1] introducing the
USE_THE_REPOSITORY_AVAILABLE macro, but going thru it provided all the
context necessary for this series.
I see there have been a few cleanups since the first version, and I
didn't spot any typos on my end. Overall, this is a good step towards
reducing our dependency on `the_repository` by removing it from the
config subsystem. Additionally, this makes libifying that subsystem much
easier since removing globals usage is a prerequisite for libification.
I only left a non-blocking comment on one of the patches, but besides
that this series LGTM. Feel free to cc me on any related series in the
future!
[1] https://lore.kernel.org/git/cover.1718106284.git.ps@pks.im/
Reviewed-by: Calvin Wan <calvinwan@google.com>
On 24/08/13 11:13AM, Patrick Steinhardt wrote: > Hi, > > this is the second version of my patch series that drops the dependency > on `the_repository` in both "path.c" and "config.c". > > Changes compared to v1: > > - Various typo fixes in commit messages. > > - Rename `strbuf_git_common_pathv()` to `repo_common_pathv()`. > > - Reorder arguments of `strbuf_edit_interactively()` such that the > `struct repository` gets passed as first argument. > > - Document behaviour of `worktree_git_path()` when no worktree is > given. > > - Wrap some overly long lines. > > Thanks! After reviewing the changes in this version, the series looks good to me! Thanks :) -Justin
On Wed, Aug 14, 2024 at 07:29:57PM +0000, Calvin Wan wrote: > Hi Patrick, > > Glad to see us slowly getting rid of the global, `the_repository`! I had > missed your original series[1] introducing the > USE_THE_REPOSITORY_AVAILABLE macro, but going thru it provided all the > context necessary for this series. > > I see there have been a few cleanups since the first version, and I > didn't spot any typos on my end. Overall, this is a good step towards > reducing our dependency on `the_repository` by removing it from the > config subsystem. Additionally, this makes libifying that subsystem much > easier since removing globals usage is a prerequisite for libification. > I only left a non-blocking comment on one of the patches, but besides > that this series LGTM. Feel free to cc me on any related series in the > future! > > [1] https://lore.kernel.org/git/cover.1718106284.git.ps@pks.im/ Thanks, will do! Patrick