Use `commondir` from libgit2 instead of walking fs (#22028)

Release Notes:

- N/A
864c1ff00cMichael Sloan committed on 2/7/2025, 4:38:09 AM· committed by GitHubparent35ef269
2 files changedLine totals unavailable