You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the changes made are being determined by the command git diff <destination branch>..<source branch>. This command results in changes made in the destination branch as well.
Some CI tools have option to merge the source branch into the destination with the git clone step itself. In this case, changes made in the destination branch become irrelevant for determining the affected targets.
For these scenarios, we should use the git diff <destination branch>...<source branch> command to accurately determine the effective change set.
Proposal
Add one more command line option to exclude destination branch changes.
The text was updated successfully, but these errors were encountered:
Instead of passing the destination branch as the --base-branch argument try using git merge-base to find the best common ancestor between your source and destination branches. Using this commit at the --base-branch argument the tool will only consider the changes from the source branch back to that common ancestor.
example from my CI script:
MERGE_BASE=`git merge-base ${SOURCE_COMMIT} ${DESTINATION_BRANCH}`
echo "Merge Base: ${MERGE_BASE}"
mint run XcodeSelectiveTesting --base-branch ${MERGE_BASE}
Currently, the changes made are being determined by the command
git diff <destination branch>..<source branch>
. This command results in changes made in the destination branch as well.Some CI tools have option to merge the source branch into the destination with the git clone step itself. In this case, changes made in the destination branch become irrelevant for determining the affected targets.
For these scenarios, we should use the
git diff <destination branch>...<source branch>
command to accurately determine the effective change set.Proposal
Add one more command line option to exclude destination branch changes.
The text was updated successfully, but these errors were encountered: