Commit f498d92f authored by Johann's avatar Johann
Browse files

Ignore missing newline message

git diff adds the following line to diffs:
\ No newline at end of file

which interferes with parsing. only looks for '+', '-'
and ' ' at the beginning of the line.

Issue seen on

Change-Id: I0d7b4485c470e0b409f2c9cddde6c9aceba0152e
parent 37e5325b
......@@ -56,6 +56,9 @@ class DiffHunk(object):
elif line[0] == " ":
elif line[0] == "\\":
# Ignore newline messages from git diff.
assert False, ("Unrecognized character at start of diff line "
"%r" % line[0])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment