From: Srujith A Poojary via GitGitGadget Date: Tue, 10 Nov 2026 18:39:27 GMT Subject: [PATCH v3 0/2] [Outreachy PATCH] archive: remove USE_THE_REPOSITORY_VARIABLE from archival modules Message-ID: In-Reply-To: Refactored archive-tar.c, archive-zip.c, archive.c, and supporting files to use explicit struct repository *repo pointers instead of global repository variables. Srujith A Poojary (2): submodule: use the submodule repository to abbreviate commits archive: remove USE_THE_REPOSITORY_VARIABLE from archival modules archive-tar.c | 5 ++--- builtin/archive.c | 1 + submodule.c | 5 +++-- t/t4041-diff-submodule-option.sh | 23 +++++++++++++++++++++++ 4 files changed, 29 insertions(+), 5 deletions(-) base-commit: 50fe5cc63f9cd6e89b87a2c9ccf96a444f4cfdb7 Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-2305%2Fpoojarysrujith%2Farchive-libification-refactor-v3 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-2305/poojarysrujith/archive-libification-refactor-v3 Pull-Request: https://github.com/gitgitgadget/git/pull/2305 Range-diff vs v2: 1: 01c3cc2573 = 1: 01c3cc2573 submodule: use the submodule repository to abbreviate commits 2: 3d8d9a9261 ! 2: 398b54f00a archive: remove USE_THE_REPOSITORY_VARIABLE from archival modules @@ Metadata ## Commit message ## archive: remove USE_THE_REPOSITORY_VARIABLE from archival modules - Refactor archival modules (archive-tar.c, archive-zip.c, archive.c, - builtin/archive.c, builtin/upload-archive.c, and diagnose.c) to accept - and pass explicit struct repository * pointers instead of relying on - global repository state. + Refactor archive-tar.c, archive-zip.c, archive.c, and supporting files + to clean up archiver initialization functions and header dependencies. Signed-off-by: Srujith A Poojary -- gitgitgadget