lib/functions/ignore.js
function getIgnoreRegexes(rootFolder) {
    const gasignoreFilepath = path.join(rootFolder, constants.IGNORE_FILE);

    let regexes = [];
    if (fs.existsSync(gasignoreFilepath)) {
        regexes = parse(fs.readFileSync(gasignoreFilepath));
    }
    return regexes;
}
function getIgnoreRegexes(rootFolder) {
    const gasignoreFilepath = path.join(rootFolder, constants.IGNORE_FILE);

    let regexes = [];
    if (fs.existsSync(gasignoreFilepath)) {
        regexes = parse(fs.readFileSync(gasignoreFilepath));
    }
    return regexes;
}
function getIgnoreRegexes ( rootFolder ) { const gasignoreFilepath = path . join ( rootFolder , constants . IGNORE_FILE ) ; let regexes = [ ] ; if ( fs . existsSync ( gasignoreFilepath ) ) { regexes = parse ( fs . readFileSync ( gasignoreFilepath ) ) ; } return regexes ; }
Get a list of regexes of filenames to ignore while pushing

@param {String} rootFolder - relative path to the rootFolder of the project
@returns {array} - An array of regexes
Get a list of regexes of filenames to ignore while pushing