mirror of
https://github.com/git/git.git
synced 2026-01-09 17:46:37 +00:00
pager: stop using the_repository
Stop using `the_repository` in the "pager" subsystem by passing in a repository when setting up the pager and when configuring it. Adjust callers accordingly by using `the_repository`. While there may be some callers that have a repository available in their context, this trivial conversion allows for easier verification and bubbles up the use of `the_repository` by one level. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
1f7e6478dc
commit
59b6131a67
@@ -369,7 +369,7 @@ static void cmd_log_init_finish(int argc, const char **argv, const char *prefix,
|
||||
if (rev->line_level_traverse)
|
||||
line_log_init(rev, line_cb.prefix, &line_cb.args);
|
||||
|
||||
setup_pager();
|
||||
setup_pager(the_repository);
|
||||
}
|
||||
|
||||
static void cmd_log_init(int argc, const char **argv, const char *prefix,
|
||||
@@ -2292,7 +2292,7 @@ int cmd_format_patch(int argc,
|
||||
rev.commit_format = CMIT_FMT_MBOXRD;
|
||||
|
||||
if (use_stdout) {
|
||||
setup_pager();
|
||||
setup_pager(the_repository);
|
||||
} else if (!rev.diffopt.close_file) {
|
||||
int saved;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user