Add commit command

Change-Id: If8ff0ec34f5a187b3585ac0ff98e06fba699f809
diff --git a/src/sysrepo_access.cpp b/src/sysrepo_access.cpp
index 09eb35d..54fa1fd 100644
--- a/src/sysrepo_access.cpp
+++ b/src/sysrepo_access.cpp
@@ -61,10 +61,7 @@
     }
 };
 
-SysrepoAccess::~SysrepoAccess()
-{
-    m_session->commit();
-}
+SysrepoAccess::~SysrepoAccess() = default;
 
 SysrepoAccess::SysrepoAccess(const std::string& appname)
     : m_connection(new Connection(appname.c_str()))
@@ -101,3 +98,8 @@
 {
     m_session->delete_item(path.c_str());
 }
+
+void SysrepoAccess::commitChanges()
+{
+    m_session->commit();
+}