I am trying to achieve something along the lines ofdiff -ywB --suppress-common-lines `git branch --merged prod-server` `git branch --merged test-server`so that I can know the difference of what has been merged into my test server branch but not in my production server branchBut when I execute the command above my exit status is 2 (indicates error)
how to pipe output from git commands into unix diff utility?
git;diff
Use process substitution on bash:diff -ywB --suppress-common-lines <(git branch --merged prod-server) <(git branch --merged test-server)