Replace DiffKind with a pair of SourceKind enums
Improve efficiency in Diff::filterPersistenceUnits
Improve handling of CommitTime in History