When there was a single-line feature change in a file, the commit has
been added to the wrong feature. This is fixed by processing the
left/upcoming features (next_features) at the end of processing lines
changed by commits in a release range.
Signed-off-by: Claus Hunsen <hunsen@xxxxxxxxxxxxxxxxx>
codeface/cluster/cluster.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/codeface/cluster/cluster.py b/codeface/cluster/cluster.py
index d363ff3..f576455 100755
@@ -365,7 +365,7 @@ def group_feature_lines(file_commit, file_state, cmt_list):
# boundary case for open code-blocks or a single line file_state.
for feature in feature_blks:
- if feature in curr_features: # Close all open feature blocks
+ if feature in next_features: # Close all open feature blocks