add a script to get ancestors of 2 git branches