Refactor Git access checks to allow change-indepentent checks
The Git access check implementation should be refactored to allow for change-independent checks. LFS checks are nowadays independent of the change given they inspect the quarantine environment, and diff checks can benefit from the same optimization.
Edited by Patrick Steinhardt