Can I git diff a subset of files between two branches -


git diff branch..branch1 generate difference between 2 branches.

is there way diff given list of files?

'git diff branch..branch1 filename' can 1 file, if want supply list of files?

you can do:

git diff branch..branch1 -- file1 file2 

so if have filelist, can use shell expansion (in bash, example) enumerate contents of filelist.

> cat filelist file1 file2 > echo $(cat filelist) file1 file2 > git diff branch..branch1 -- $(cat filelist) 

where final command should you're looking for.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

node.js - Express and Redis - If session exists for this user, don't allow access -

excel - I can't get the attachement of the email PHP -