diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-06-24 09:48:52 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-06-24 09:48:52 -0700 |
| commit | 277c3e82edbb59c9611b1ca0b8a76a740931eea9 (patch) | |
| tree | b8d3f8ebe76c1731eea28f8883a638d609998301 /git.c | |
| parent | da59201dfcafac520a0a3d5d02c467c0a6f304c2 (diff) | |
| parent | 2939494284909cdc1410944c9c1e00a4a6eff2e9 (diff) | |
| download | git-277c3e82edbb59c9611b1ca0b8a76a740931eea9.tar.gz | |
Merge branch 'ly/run-builtin-use-passed-in-repo'
Code clean-up.
* ly/run-builtin-use-passed-in-repo:
git.c: remove the_repository dependence in run_builtin()
Diffstat (limited to 'git.c')
| -rw-r--r-- | git.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -462,12 +462,12 @@ static int run_builtin(struct cmd_struct *p, int argc, const char **argv, struct precompose_argv_prefix(argc, argv, NULL); if (use_pager == -1 && run_setup && !(p->option & DELAY_PAGER_CONFIG)) - use_pager = check_pager_config(the_repository, p->cmd); + use_pager = check_pager_config(repo, p->cmd); if (use_pager == -1 && p->option & USE_PAGER) use_pager = 1; if (run_setup && startup_info->have_repository) /* get_git_dir() may set up repo, avoid that */ - trace_repo_setup(the_repository); + trace_repo_setup(repo); commit_pager_choice(); if (!help && p->option & NEED_WORK_TREE) |
