Fix displaying git blame when the file contains some non-ascii characters
Fix accessing repo where the head is unborned
rebased
1 new commit added
I think the best place to decode this is when the file is loaded out of git. I think that happens here. That way you never have to worry about encoding here.
I only have the one comment. I think you can use that encoding_utils module to guess the encoding type and then decode it, since it's not necessary utf-8 encoded.
:thumbsup: I'm happy if you're happy
Local tests are working, so I am as well :)
Pull-Request has been merged by pingou
Fix displaying git blame when the file contains some non-ascii characters
Fix accessing repo where the head is unborned