function isUnix(patch) {
    if (!Array.isArray(patch)) {
        patch = [patch];
    }
    return !patch.some(function (index) {
        return index.hunks.some(function (hunk) {
        return hunk.lines.some(function (line) {
            return !line.startsWith('\\') && line.endsWith('\r');
        });
        });
    });
    }
Returns true if the patch consistently uses Unix line endings (or only involves one line and has
no line endings).