merge inline branch into leaf branch