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
Post a Comment