Add history for merge