Git diff --stat解释 [英] Git diff --stat explanation

查看:171
本文介绍了Git diff --stat解释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Git的pull输出已经在这里解释相当好。尽管如此,我仍然不确定文本图形与什么相关。



例如:

git diff --stat master HEAD ^

Site / index.php | 118 ++ -



虽然修改的行数清楚地显示为118,但文本图形有点难以解释。

这可能与添加和删除行的比例有关吗? p>是的,它是添加和删除行的比率。



另见:

  man diffstat 


Git's pull output has been explained here fairly well. In spite of this I'm still unsure exactly what the text graph relates to.

For example:

git diff --stat master HEAD^

Outputs (truncated):

Site/index.php | 118 ++--

While the number of lines modified is clearly displayed as 118, the text graph is a little harder to interpret.

Could this relate to the ratio of added and removed lines?

解决方案

Yes it's the ratio of added and removed lines.

See also:

man diffstat

这篇关于Git diff --stat解释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆