]> git.ipfire.org Git - thirdparty/git.git/commit
preload-index: stop depending on 'the_repository'
authorAyush Chandekar <ayu.chandekar@gmail.com>
Tue, 10 Jun 2025 13:02:21 +0000 (18:32 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Jun 2025 17:10:40 +0000 (10:10 -0700)
commit1fde1c5daf399bb2d645261e38a7f4b8b1de04c6
treee4877ef06aa366efacf8943dfb6bd75b147fa33e
parentb1d47b464e553331c555f122c5e341dfbfb618bd
preload-index: stop depending on 'the_repository'

Refactor "preload-index.c" to remove the dependency on the global
'the_repository'. Replace the occurrences of 'the_repository' with
'index->repo' and thus remove the definition '#define
USE_THE_REPOSITORY_VARIABLE'.

Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Ghanshyam Thakkar <shyamthakkar001@gmail.com>
Signed-off-by: Ayush Chandekar <ayu.chandekar@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
preload-index.c