Honggyu,

For case 2: Why not just rebase the Tag-B..Tag-A (which is all the commits that 
in the Tag-B release that are not in the Tag-A release (i.e. between Tag-B and 
the merge-base (branching point between) of Tag-A and Tag-B.

You can rebase that series '--onto Tag-A' and Git, in the main will detect 
which commits are duplicates and ignore them, and do all the usual merge stuff 
for each of those commits in the series.

You can use the 'gitk' viewer with those log command options to select the part 
you want to see (which is likely 'gitk Tag-A...Tag-B &' using the three dot 
notation to show both sides).

Geasons Greetings
Philip
  ----- Original Message ----- 
  From: Honggyu Kim 
  To: Git for human beings 
  Sent: Sunday, December 25, 2016 1:01 AM
  Subject: [git-users] How can I see the diff commits between two tags from 
different branches?


  Hi all,


  I'm planing to do some back-porting work so I would like to see the diff 
commits between two tags, let's say tag-A and tag-B.  There can be two cases:


  Case 1. If tag-A and tag-B are in a single branch and tag-B is more recent 
one.
  This is obvious. tag-B is based on tag-A and has some only additional commits.


  Case 2. If tag-A and tag-B are in different branches and those are developed 
in parallel.
  There can be some additional and also missing commits between tag-A and tag-B.



  Can anyone please let me know how to pick those additional and missing 
commits in Case 2?


  Thanks,
  Honggyu

  -- 
  You received this message because you are subscribed to the Google Groups 
"Git for human beings" group.
  To unsubscribe from this group and stop receiving emails from it, send an 
email to git-users+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to