mirror of
https://github.com/bluekeyes/go-gitdiff
synced 2026-06-08 13:18:30 +00:00
4b25230457
Instead of checking that a line has a certain prefix before calling a header parsing function, the functions now check this and return nil objects when called on the wrong line type. If the line passes this basic check but is still invalid, and error is returned as before.