diff options
Diffstat (limited to 'src/commit')
-rw-r--r-- | src/commit/commit-algorithm.cpp | 9 | ||||
-rw-r--r-- | src/commit/commit-algorithm.hpp | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/commit/commit-algorithm.cpp b/src/commit/commit-algorithm.cpp index 580c9dc..d2612a7 100644 --- a/src/commit/commit-algorithm.cpp +++ b/src/commit/commit-algorithm.cpp @@ -117,7 +117,10 @@ _create_commit_cfg_node(CfgNode& cn, const Cpath& p, CommitState s) return node; } -// "changed" multi-value leaf nodes +/* "changed" multi-value leaf nodes. note that "changed" state applies to + * the "node" itself. the actual states of the node values can only be + * added, deleted, or unchanged. + */ static CfgNode * _create_commit_cfg_node(const CfgNode& cn, const Cpath& p, const vector<string>& values, @@ -130,7 +133,7 @@ _create_commit_cfg_node(const CfgNode& cn, const Cpath& p, return node; } -// "changed" single-value leaf nodes +// "changed" single-value leaf nodes (this does apply to the value) static CfgNode * _create_commit_cfg_node(const CfgNode& cn, const Cpath& p, const string& val1, const string& val2, bool def1, bool def2) @@ -219,7 +222,7 @@ _trv_be_node(N *node) template<> bool _trv_be_node<CfgNode>(CfgNode *node) { - return node->isTagNode(); + return node->isBeginEndNode(); } template<class N> static void diff --git a/src/commit/commit-algorithm.hpp b/src/commit/commit-algorithm.hpp index fca04cb..0c2980f 100644 --- a/src/commit/commit-algorithm.hpp +++ b/src/commit/commit-algorithm.hpp @@ -53,7 +53,7 @@ enum CommitTreeTraversalOrder { enum CommitHook { PRE_COMMIT, POST_COMMIT, - LAST + LAST // not a valid hook }; class CommitData { |