Commit 0940a76
pretty: get the correct encoding for --pretty:format=%e
parse_commit_header() provides the commit encoding for '%e' and it
reads it from the re-encoded message, which contains the new encoding,
not the original one in the commit object. This never happens because
--pretty=format:xxx never respects i18n.logoutputencoding. But that's
a different story.
Get the commit encoding from logmsg_reencode() instead.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 5a10d23 commit 0940a76
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
| 779 | + | |
779 | 780 | | |
780 | 781 | | |
781 | 782 | | |
782 | 783 | | |
783 | 784 | | |
784 | | - | |
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
| |||
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | 831 | | |
835 | 832 | | |
836 | 833 | | |
| |||
1185 | 1182 | | |
1186 | 1183 | | |
1187 | 1184 | | |
1188 | | - | |
| 1185 | + | |
| 1186 | + | |
1189 | 1187 | | |
1190 | 1188 | | |
1191 | 1189 | | |
| |||
1296 | 1294 | | |
1297 | 1295 | | |
1298 | 1296 | | |
1299 | | - | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
1300 | 1300 | | |
1301 | 1301 | | |
1302 | 1302 | | |
1303 | 1303 | | |
| 1304 | + | |
1304 | 1305 | | |
1305 | 1306 | | |
1306 | 1307 | | |
| |||
0 commit comments