mirror of
https://github.com/bluekeyes/go-gitdiff
synced 2026-06-08 13:18:30 +00:00
e04aad2256
After parsing a valid header, the current line of the parser should be the last line of the header. If the header is invalid (the parse function returns an error), the state of the parser is undefined. Also add a test since this is easy to mess up.