From 962e17c1a94575cb690aa9fb24ed666bcba8aabe Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 14 Feb 2005 07:44:52 +0000 Subject: [PATCH] (chain_xact_handlers): Added head or tail handlers, using the transaction handler `truncate_entries'. --- main.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.cc b/main.cc index 84c4b4ed..1ead6fd9 100644 --- a/main.cc +++ b/main.cc @@ -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())