Set read only mode in diffs.

Fixed #36.