From ad5587c7f81c2a3cdb34c10564cb3528533fb860 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 20 Jul 2015 11:01:08 +0300 Subject: [PATCH] Ability to create review comments only with main message --- gerrvim2json.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gerrvim2json.pl b/gerrvim2json.pl index 79566e0..0119be6 100755 --- a/gerrvim2json.pl +++ b/gerrvim2json.pl @@ -68,7 +68,8 @@ while (<>) { $verbatim_block = 0; }; }; -comment_done; +comment_done if defined $filename; +($main_message = buf2str) if !$blockn; my %result = (comments => \%comments); ($result{message} = $main_message) if $main_message; -- 2.44.0