Ignore:
Timestamp:
Jul 18, 2010, 9:18:58 PM (13 years ago)
Author:
Peter Johansson
Message:

fixes #329. config option to exclude pages for files in report (only output directories).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Configuration.cc

    r1135 r1136  
    197197          else if (equal_true(rhs))
    198198            output_blame_information_ = true;
     199          else {
     200            throw Config_error(line, "");
     201          }
     202        }
     203        else if (lhs=="file") {
     204          if (equal_false(rhs))
     205            output_file_ = false;
     206          else if (equal_true(rhs))
     207            output_file_ = true;
    199208          else {
    200209            throw Config_error(line, "");
     
    496505    image_anchor_format_ = "png";
    497506    output_blame_information_ = true;
     507    output_file_ = true;
    498508  }
    499509
     
    502512  {
    503513    return output_blame_information_;
     514  }
     515
     516
     517  bool Configuration::output_file(void) const
     518  {
     519    return output_file_;
    504520  }
    505521
     
    536552       << "blame-information = ";
    537553    if (conf.output_blame_information())
     554      os << "yes\n";
     555    else
     556      os << "no\n";
     557    os << "# if true report will have pages for files and not only "
     558       << "directories.\n"
     559       << "file = ";
     560    if (conf.output_file())
    538561      os << "yes\n";
    539562    else
Note: See TracChangeset for help on using the changeset viewer.