Codebase list xd / upstream/3.10.2 alternatives / addignored.cc
upstream/3.10.2

Tree @upstream/3.10.2 (Download .tar.gz)

addignored.cc @upstream/3.10.2raw · history · blame

#include "alternatives.ih"


void Alternatives::addIgnored(string const &line, std::set<string> &ignoreSet)
{
    istringstream in(line);
    string path;
    in >> path >> path;         // skip ignore, extract path

    if (*path.rbegin() == '/')  // keep the final * if it's there
        path.resize(path.length() - 1);

    msg() << "ignoring " << path << info;

    ignoreSet.insert(path);
}