diff options
| author | Jayesh Daga <jayeshdaga99@gmail.com> | 2026-03-31 15:34:26 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-06-09 14:25:03 -0700 |
| commit | 0c20c6cb230cf7611ee6b6e18c3aeb13986c462e (patch) | |
| tree | 2eb6595d9301ddbab321363caa87bae5b3b42aab /t/t4013/diff.diff_initial..side | |
| parent | 5361983c075154725be47b65cca9a2421789e410 (diff) | |
unpack-trees: use repository from index instead of global
unpack_trees() currently initializes its repository from the
global 'the_repository', even though a repository instance is
already available via the source index.
Use 'o->src_index->repo' instead of the global variable,
reducing reliance on global repository state.
This is a step towards eliminating global repository usage in
unpack_trees().
Suggested-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Jayesh Daga <jayeshdaga99@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
