We're using git and have recently moved from server-side to agent-side checkout to improve performance. As part of the move we removed our checkout rules as git only supports checking out the whole repo.
We have a range of builds that compile various parts of the repository, and have set up VCS triggers to only trigger those builds when the source change is somewhere that can impact the build.
The issue is that because we can't have checkout rules, all changes in the repo are shown as "pending" for every build. At best this is confusing: changes to unrelated areas of the repo will show as pending for each build. At worst it causes unnecessary builds when using snapshot dependencies built from the same chain since if any change has been made in the repo since the last time the dependency was built, it will show as a pending change and require a rebuild, even if the change was unrelated.
Is there any way to restrict the areas of the repo that are watched for pending changes when using agent-side checkout using git, or is this only possible with server-side checkout?