Show More
@@ -831,7 +831,12 b' def addmodified(pdiff, ctx, modified):' | |||
|
831 | 831 | pchange.addoldmode(originalmode) |
|
832 | 832 | pchange.addnewmode(filemode) |
|
833 | 833 | |
|
834 | if fctx.isbinary() or notutf8(fctx) or notutf8(oldfctx): | |
|
834 | if ( | |
|
835 | fctx.isbinary() | |
|
836 | or notutf8(fctx) | |
|
837 | or oldfctx.isbinary() | |
|
838 | or notutf8(oldfctx) | |
|
839 | ): | |
|
835 | 840 | makebinary(pchange, fctx) |
|
836 | 841 | addoldbinary(pchange, fctx.p1(), fctx) |
|
837 | 842 | else: |
@@ -892,7 +897,11 b' def addadded(pdiff, ctx, added, removed)' | |||
|
892 | 897 | pchange.addnewmode(gitmode[fctx.flags()]) |
|
893 | 898 | pchange.type = DiffChangeType.ADD |
|
894 | 899 | |
|
895 | if fctx.isbinary() or notutf8(fctx) or (oldfctx and notutf8(oldfctx)): | |
|
900 | if ( | |
|
901 | fctx.isbinary() | |
|
902 | or notutf8(fctx) | |
|
903 | or (oldfctx and (oldfctx.isbinary() or notutf8(oldfctx))) | |
|
904 | ): | |
|
896 | 905 | makebinary(pchange, fctx) |
|
897 | 906 | if renamed: |
|
898 | 907 | addoldbinary(pchange, oldfctx, fctx) |
General Comments 0
You need to be logged in to leave comments.
Login now