Add read-only sync mode

Simulates actual sync without doing it, to predict merge results before
they are actually done.