I am trying to identify the delta changes whenever I commit something to gitlab. The commits can be greater than one.
I am trying to find answer similar to below question Copy differing files between two commits to a specific folder using Git
The solution described in above question says it should give me delta changes only but i am getting the whole files. I require delta changes only.
e.g If i execute below commands
git clone <repository location>
git checkout <SHA of old commit>
git diff --name-only <SHA of old commit> <SHA of newer commit> | xargs git checkout-index -f --prefix='C:\changes\'
I get the changed file in folder location C:\changes\ . But i need the changed files with delta changes only and not the whole file content. Not sure what i am doing wrong.
Any suggestions would really help.
Thankyou.