Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to achieve something along the lines of diff -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 branch

But when I execute the command above my exit status is 2 (indicates error)

share|improve this question
up vote 1 down vote accepted

Use process substitution on bash:

diff -ywB --suppress-common-lines <(git branch --merged prod-server) <(git branch --merged test-server)
share|improve this answer
    
perfect! thanks @yaegashi – cyberjar09 Jul 15 '15 at 9:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.