diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-27 16:01:33 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-27 16:01:33 -0400 |
commit | e02fe8d58fe95619e975e09dfc2da05f93c31283 (patch) | |
tree | 98f347925883f25a5b019b67b03ce055e84fc6ea | |
parent | 38cf0e56f5300177545b598618e648ef0f9a6832 (diff) | |
download | fork-ledger-e02fe8d58fe95619e975e09dfc2da05f93c31283.tar.gz fork-ledger-e02fe8d58fe95619e975e09dfc2da05f93c31283.tar.bz2 fork-ledger-e02fe8d58fe95619e975e09dfc2da05f93c31283.zip |
Allow --head to limit the entries generate creates
-rw-r--r-- | src/report.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/report.cc b/src/report.cc index a79a938b..09ce619f 100644 --- a/src/report.cc +++ b/src/report.cc @@ -53,7 +53,9 @@ void report_t::generate_report(post_handler_ptr handler) { generate_posts_iterator walker (session, HANDLED(seed_) ? - static_cast<unsigned int>(HANDLER(seed_).value.to_long()) : 0); + static_cast<unsigned int>(HANDLER(seed_).value.to_long()) : 0, + HANDLED(head_) ? + static_cast<unsigned int>(HANDLER(head_).value.to_long()) : 50); pass_down_posts(chain_post_handlers(*this, handler), walker); } |