src/utils/file.js
function create(repoState, filepath, content) {
    content = content || '';
    if (exists(repoState, filepath)) {
        throw error.fileAlreadyExist(filepath);
    }
    const change = Change.createCreate(content);
    return ChangeUtils.setChange(repoState, filepath, change);
}
function create(repoState, filepath, content) {
    content = content || '';
    if (exists(repoState, filepath)) {
        throw error.fileAlreadyExist(filepath);
    }
    const change = Change.createCreate(content);
    return ChangeUtils.setChange(repoState, filepath, change);
}
Create a new file (must not exists already)
@param {RepositoryState} repoState
@param {Path} filepath
@param {String} [content='']
@return {RepositoryState}