Re: [PATCH 4/4] archive: remove the_repository global variable
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 24, 2024, 18:35 UTC
- Message-ID
- <xmqq34loucgi.fsf@gitster.g>
- In-Reply-To
- <f6c32ec609cca56f1c02a75929dc7cc19d4834cd.1727185364.git.gitgitgadget@gmail.com>
"John Cai via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 14 quoted lines
> int cmd_archive(int argc,
> const char **argv,
> const char *prefix,
> - struct repository *repo UNUSED)
> + struct repository *repo)
> {
> const char *exec = "git-upload-archive";
> char *output = NULL;
> @@ -110,7 +109,7 @@ int cmd_archive(int argc,
>
> setvbuf(stderr, NULL, _IOLBF, BUFSIZ);
>
> - ret = write_archive(argc, argv, prefix, the_repository, output, 0);
> + ret = write_archive(argc, argv, prefix, repo, output, 0);Exactly the same comment applies here as [3/4]