问题描述
- //根据值排序列表
+ //根据值排序列表
如何轻松查看删除的标签/空格的数量注释:Git 2.5+(2015年第2季度)将为空白检测提出一个更具体的选项。
请参阅)
更新Git 2.11+(2016年第四季度,一年半后):
git config diff.wsErrorHighlight [old,new ,上下文]
git diff / log --ws-error-highlight = < kind>
缺少相应的配置变量来默认设置它。这是添加到Git 2.11。
请参阅,,(2016年10月4日)作者:。
I have the following output with git-diff.
- // sort list based on value
+ // sort list based on value
How can I see easily see the number of removed tabs/spaces at the end of the line ?
Note: Git 2.5+ (Q2 2015) will propose a more specific option for whitespace detection.
See commits 0e383e1, 0ad782f, and d55ef3e [26 May 2015] by Junio C Hamano (gitster
).
The documentation now includes:
--ws-error-highlight=<kind>
For instance, the old commit had one whitespace error (bbb
), but you can focus on the new errors only:
(test done after t/t4015-diff-whitespace.sh
)
Update Git 2.11+ (Q4 2016, a year and half later) :
git config diff.wsErrorHighlight [old,new,context]
git diff/log --ws-error-highlight=<kind>
lacked the corresponding configuration variable to set it by default. That is added in Git 2.11.
See commit 0b4b42e, commit 077965f, commit f3f5c7f (04 Oct 2016) by Junio C Hamano (gitster
).
这篇关于如何用git-diff显示空格和制表符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!