Add git reset-ancestor function.