How to get information where branch starts?

前端 未结 3 951
没有蜡笔的小新
没有蜡笔的小新 2020-12-30 15:11

As far as I know, commit object contains information only about parents, so if I have situation something like this:

 *  branch-1
 |
 o
 |
 o  master
 |
 o 
         


        
3条回答
  •  失恋的感觉
    2020-12-30 15:18

    Git doesn't really have a concept of this, if you want to add this, you'd need to add a heuristic, because all git really cares about is attaching a label to a given commit in the tree.

提交回复
热议问题