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:
@ -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
|
||||||
|
Reference in New Issue
Block a user