I know git command "git branch --contains" can show on what branch(es) a tag can be found. But the output includes all children/sub branches. For example:
master ----------------------------
          |    \
        tag_X   \
                 \
                  ------------------ branch_A
                    |      \
                   tag_Y    \
                             \
                              --------------- branch_B
When we run "git branch --contains tag_X" we will get
branch_A
branch_B
master
although tag_X was created on master, not branch_A and branch_B
Is there any command in git to show only the specific branch where the tag was initially created, excluding all children/sub branches? If there is none, any idea how to get it (parsed from log, status, etc)? Thanks!
 
     
     
    