src/utils/working.js
function hasPendingChanges(workingState, filepath) {
    // Lookup potential changes
    const change = workingState.getChanges().get(filepath);
    if (change) {
        return true;
    } else {
        // Else lookup tree
        const treeEntry = workingState.getTreeEntries().get(filepath);
        if (!treeEntry) {
            throw error.fileNotFound(filepath);
        } else {
            return false;
        }
    }
}
function hasPendingChanges(workingState, filepath) {
    // Lookup potential changes
    const change = workingState.getChanges().get(filepath);
    if (change) {
        return true;
    } else {
        // Else lookup tree
        const treeEntry = workingState.getTreeEntries().get(filepath);
        if (!treeEntry) {
            throw error.fileNotFound(filepath);
        } else {
            return false;
        }
    }
}
Returns true if the file differs from initial tree (including removed)
@return {Boolean}
@throws FILE_NOT_FOUND
 TODO unused, remove