Ask Your Question
3

I want to review a ticket with positively reviewed dependencies. How do I use git to see the new changes?

asked 2015-04-13 12:47:19 -0500

Franco gravatar image

updated 2015-04-13 12:47:57 -0500

I'm reviewing trac ticket #11111 and I want to see the changes introduced by this ticket on top of ticket #8678. I've already reviewed the other patch, so I don't want to waste my time re-reading those changes.

How do I do this?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
5

answered 2015-04-13 13:58:33 -0500

Nathann gravatar image

If a branch A depends on branches A1 A2 .. Ai, then in order to see the modifications that A makes without seeing those already made in A1, ..., Ai you can type:

git diff A ^A1 ^A2 ... ^Ai

Of course the A and Ai must be names of branches or identifiers of commits.

Nathann

edit flag offensive delete link more

Comments

1

Thank you, Nathann! For the record, I checked out branches A and A1 on my machine; I merged develop into A1; then I ran the command above. This did exactly what I wanted. Thanks!

Franco gravatar imageFranco ( 2015-04-13 16:17:22 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-04-13 12:47:19 -0500

Seen: 278 times

Last updated: Apr 13 '15