First time here? Check out the FAQ!

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 9 years ago

Franco gravatar image

updated 9 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
5

answered 9 years ago

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

Preview: (hide)
link

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 ( 9 years ago )

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: 9 years ago

Seen: 585 times

Last updated: Apr 13 '15