project: Change Git repo automatically with change in file buffer (#36796)

### Summary

* Auto-activates the active repository when opening a buffer.
* Prepares branching for future support of a user choice (e.g.,
`auto_activate_repo_on_open` flag).

### Release Notes

* **Improved**: Opening a buffer now automatically updates the active
repository.
d8698dffe3rufevean committed on 10/2/2025, 2:42:08 PM· committed by GitHubparentbf44dc5
2 files changedLine totals unavailable