src/utils/change.js
function revertAllRemoved(repoState) {
    let workingState = repoState.getCurrentState();
    const changes = workingState.getChanges().filter(
        // Remove all changes that are in the directory
        (change) => {
            return change.getType() === CHANGE_TYPE.REMOVE;
        }
    );

    // Update workingState and repoState
    workingState = workingState.set('changes', changes);
    return RepoUtils.updateCurrentWorkingState(repoState, workingState);
}
function revertAllRemoved(repoState) {
    let workingState = repoState.getCurrentState();
    const changes = workingState.getChanges().filter(
        // Remove all changes that are in the directory
        (change) => {
            return change.getType() === CHANGE_TYPE.REMOVE;
        }
    );

    // Update workingState and repoState
    workingState = workingState.set('changes', changes);
    return RepoUtils.updateCurrentWorkingState(repoState, workingState);
}
Revert all removed files
@param {RepositoryState}
@return {RepositoryState}