let's say we create a branch new_branch
. We change 1 file there, commit this one file, push and create a pull request to parent rep/master
.
meanwhile parent rep changed quite a bit, let's say 100 files were changed but that 1 file wasn't touched.
And still, pull request diff will show that only 1 file was changed.
So how GIT
understands that actually 1 file needs to be merged only, and not 101 files. I mean parent rep/master
compare to child rep/new_branch
in fact 101 files were changed and not 1 file..