commit | 6d79143c261c7c4392b71b35cbe9d5749d82ff1f | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubervac@fit.cvut.cz> | Thu Oct 25 16:00:35 2018 +0200 |
committer | Jan Kundrát <kundrat@cesnet.cz> | Fri Oct 26 13:45:06 2018 +0200 |
tree | 79be2841823db82417f07eaa6cf9816417abe8e1 | |
parent | b7a279dc016827f1e55c91c4228216ce071c7526 [diff] [blame] |
Add discard command Change-Id: Ie2243188694657665240769d93b2835034e48c3a
diff --git a/src/interpreter.cpp b/src/interpreter.cpp index bdeecf9..452bc74 100644 --- a/src/interpreter.cpp +++ b/src/interpreter.cpp
@@ -29,6 +29,11 @@ m_datastore.commitChanges(); } +void Interpreter::operator()(const discard_&) const +{ + m_datastore.discardChanges(); +} + void Interpreter::operator()(const set_& set) const { m_datastore.setLeaf(absolutePathFromCommand(set), set.m_data);