1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

fix for oneline output

This commit is contained in:
Kelly Brazil
2022-04-22 12:12:38 -07:00
parent 3eebb6ee19
commit 79e37a7383

View File

@ -234,11 +234,18 @@ def parse(
# oneline style # oneline style
if line_list and _is_commit_hash(line_list[0]): if line_list and _is_commit_hash(line_list[0]):
if output_line:
if file_list:
output_line['stats']['files'] = file_list
raw_output.append(output_line)
output_line = {}
message_lines = []
file_list = []
output_line = { output_line = {
'commit': line_list[0], 'commit': line_list[0],
'message': line_list[1] 'message': line_list[1]
} }
raw_output.append(output_line)
continue continue
# all other styles # all other styles