diff options
author | John Wiegley <johnw@newartisans.com> | 2005-02-14 07:44:52 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:00 -0400 |
commit | 962e17c1a94575cb690aa9fb24ed666bcba8aabe (patch) | |
tree | cfed7d5ce49c925279c8dee16e7f922c3ce33fd6 | |
parent | 22beb8623900130f3175a74e51c242f6ad416caa (diff) | |
download | fork-ledger-962e17c1a94575cb690aa9fb24ed666bcba8aabe.tar.gz fork-ledger-962e17c1a94575cb690aa9fb24ed666bcba8aabe.tar.bz2 fork-ledger-962e17c1a94575cb690aa9fb24ed666bcba8aabe.zip |
(chain_xact_handlers): Added head or tail handlers, using the
transaction handler `truncate_entries'.
-rw-r--r-- | main.cc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -67,6 +67,14 @@ chain_xact_handlers(const std::string& command, // format_transactions write each transaction received to the // output stream. if (! (command == "b" || command == "E")) { + if (config.head_entries || config.tail_entries) + ptrs.push_back(formatter = + new truncate_entries(formatter, + config.head_entries ? + config.head_entries : + config.tail_entries, + config.tail_entries)); + // filter_transactions will only pass through transactions // matching the `display_predicate'. if (! config.display_predicate.empty()) |