Making 'aftermerge' function more flexing accepting the destination branch as an argument