summaryrefslogtreecommitdiff
path: root/src/journal.cc
diff options
context:
space:
mode:
authorPeter Feigl <craven@gmx.net>2014-02-26 23:50:50 +0100
committerPeter Feigl <craven@gmx.net>2014-02-26 23:50:50 +0100
commitecd5097d515f53703eb5dc6096da80182c452ad9 (patch)
treef5d912e3e87c6e0e72bf6cd8bea758a0ae42ed03 /src/journal.cc
parentee36a33a19c57cd57c1be7076530d65ae1ac68b0 (diff)
downloadfork-ledger-ecd5097d515f53703eb5dc6096da80182c452ad9.tar.gz
fork-ledger-ecd5097d515f53703eb5dc6096da80182c452ad9.tar.bz2
fork-ledger-ecd5097d515f53703eb5dc6096da80182c452ad9.zip
Adding option --no-aliases to completely disable alias expansion
Diffstat (limited to 'src/journal.cc')
-rw-r--r--src/journal.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/journal.cc b/src/journal.cc
index 007acd7b..160abe06 100644
--- a/src/journal.cc
+++ b/src/journal.cc
@@ -173,6 +173,9 @@ account_t * journal_t::expand_aliases(string name) {
// prevent infinite excursion. Each alias may only be expanded at most once.
account_t * result = NULL;
+ if(no_aliases)
+ return result;
+
bool keep_expanding = true;
std::list<string> already_seen;
// loop until no expansion can be found