Find first common child of two commits

后端 未结 3 1781
旧时难觅i
旧时难觅i 2021-01-12 07:29
           :
           A
T         / \\
i        B   C
m        :   :
e        D   E
          \\ /
|          F
V          :

git merge-base

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-12 08:00

    Adapt all.awk from this answer to also carry the line number for each ref, then when you've encountered both parents look at the refs they have in common.

提交回复
热议问题