void RCommit::addFile(const std::string& filename, const std::string& action, const vec3& colour) { //check filename against filters if(!gGourceSettings.file_filters.empty()) { for(std::vector<Regex*>::iterator ri = gGourceSettings.file_filters.begin(); ri != gGourceSettings.file_filters.end(); ri++) { Regex* r = *ri; if(r->match(filename)) { return; } } } files.push_back(RCommitFile(filename, action, colour)); }
void RCommit::addFile(std::string& filename, std::string& action, vec3f colour) { files.push_back(RCommitFile(filename, action, colour)); }
void RCommit::addFile(std::string& filename, std::string& action) { files.push_back(RCommitFile(filename, action, fileColour(filename))); }