Skip to content

Commit

Permalink
accept graph lines that do not end on a space
Browse files Browse the repository at this point in the history
i don't really know what implications this has or not but it's better to not throw here
  • Loading branch information
phil294 committed Apr 30, 2023
1 parent ade3b4b commit 9f5ebe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/views/log-utils.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ parse = (data, separator) =>
# this is not helpful as these colors are non-consistent and not bound to any branches
[ vis_str = '', hash = '', author_name = '', author_email = '', timestamp = '', refs_csv = '', subject = '' ] = line.split separator
if vis_str.at(-1) != ' '
throw new Error "unknown syntax at line " + line_no
console.warn "unknown git graph syntax returned at line " + line_no
refs = refs_csv
.split ', '
# map to ["master", "origin/master", "tag: xyz"]
Expand Down

0 comments on commit 9f5ebe2

Please sign in to comment.