git show-branch --sha1-name #{親ブランチ} #{派生ブランチ} | tail -1
--sha1-nameはハッシュのオプション。
--sha1-name
--name-only
--diff-filter=M
A(追加)
D(削除)
C(コピー)
R(リネーム)