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 19:47:19 +0100

Franco gravatar image

updated 2015-04-13 19:47:57 +0100

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 20:58:33 +0100

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 23:17:22 +0100 )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 19:47:19 +0100

Seen: 574 times

Last updated: Apr 13 '15