我刚刚在我公司的HP-UX机器上将git更新到1.8.4版本。现在我在终端上看到虚假的字符,例如在输入git diff时我得到:
$ git diff
1mdiff --git a/pg/wop/pgmwo.4gl b/pg/wop/pgmwo.4glmm
1mindex 0764c3b..f9f99a8 100644mm
1m--- a/pg/wop/pgmwo.4glmm
1m+++ b/pg/wop/pgmwo.4glmm
36m@@ -2194,8 +2194,9 @@m mRKH090805}mm
DELETE FROM woshortmm
WHERE line_recno = f_wodet_recnomm
ELSEmm
31m- UPDATE woshortmm
31m- SET qty_short = f_shortmm
32m+m32m UPDATE woshort SETmm
32m+m32m qty_short = f_short,mm
32m+m32m line_no = g_wodet_rec.linenomm
WHERE line_recno = f_wodet_recnomm
END IFmm
END IFmm
36m@@ -5521,8 +5522,9 @@m mDEFINE f_wodet_recno LIKE wodet.recno,mm
DELETE FROM woshortmm
WHERE line_recno = f_wodet_recnomm
ELSEmm
31m- UPDATE woshortmm
31m- SET qty_short = f_shortmm
当我回到git版本1.8.3.4时,这不会发生。我使用depothelper来安装git及其依赖项。它看起来像颜色格式代码,但我们的终端都是单色的。
我们的服务器是HP-UX B.11.31 U ia64(tr)。我们通常使用带有wy60终端配置的SmarTerm连接到服务器。
我缺少什么配置?
修改
我还在git log
等命令的每一行输出的末尾看到一个字母'm'。例如:
$ git log
commit ded5bfda75018bee84e3b81ca6f7a5f1dcf035cdm
Merge: 196862d 777b10dm
Author: Richard Holyoak <richard.holyoak@jjselectronics.com>m
Date: Mon Sep 30 13:51:49 2013 +0100m
m
Merge branch '9328'm
m
commit 777b10d09eb828e250283b74a22df52662d1897cm
Author: Richard Holyoak <richard.holyoak@jjselectronics.com>m
Date: Mon Sep 30 13:50:09 2013 +0100m
m
9328 pgmwo: V1-10-06 Updates to woshort ensure that the line number is also
m m
I don't think this is the root cause of the woshort line numberm
being out-of-step with the wodet line number but it will help.m
m
commit 196862de9817b6205263bbf7b14855db158feadem
Merge: 34d84af 07bf5b8m
Author: Richard Holyoak <richard.holyoak@jjselectronics.com>m
Date: Fri Sep 27 13:25:32 2013 +0100m
m
Merge branch '11420'm
m
答案 0 :(得分:5)
看起来像颜色代码......
在1.8.4中,color.ui
默认为auto
,这是一种新行为。
您是否可以尝试将其手动设置为false
并查看是否会影响情况?
git config --global color.ui false