public static boolean unifiedDiff(final Path originalFile,
                                      final Path revisedFile,
                                      final boolean colouredOutput,
                                      final int contextLines,
                                      final Consumer<List<String>> diffLinesConsumer) {

        final String originalContent = getFileAsString(originalFile);
        final String revisedContent = getFileAsString(revisedFile);

        return diff(
                originalFile.toAbsolutePath().normalize().toString(),
                revisedFile.toAbsolutePath().normalize().toString(),
                originalContent,
                revisedContent,
                colouredOutput, contextLines, diffLinesConsumer
        );
    }
Generates a unified diff of the passed files.

@param originalFile      The original file to diff
@param revisedFile       The revised file to diff
@param colouredOutput    True if you want ascii colour codes in the output
@param contextLines      Number of lines of context before and after each difference
@param diffLinesConsumer A consumer of the diff output lines
@return True if any differences exist
stroom-util/src/main/java/stroom/util/io/DiffUtil.java