Skip to content

packfile: avoid using the 'the_repository' global variable

The packfile.c file uses the global variable 'the_repository' extensively throughout the code. Let's remove all usecases of this, by modifying the required functions to accept a 'struct repository' instead. This is to clean up usage of global state and instead rely on passed arguments.

Signed-off-by: Karthik Nayak karthik.188@gmail.com

Closes #373

Edited by Karthik Nayak

Merge request reports

Loading