简体   繁体   English

如何生成忽略空格的2次提交之间的差异

[英]How can I generate the difference between 2 commits which ignore spaces

In my git log, I have 2 commits. 在我的git日志中,我有2个提交。 How can I generate the difference - ignoring spaces - between them? 如何在它们之间产生差异 - 忽略空格?

$ git log
commit e5640171f391fdf479fa14fab0da6628efed1fa6
Author: test <test@mycompany.com>
Date:   Mon Jul 13 11:41:02 2009 -0700

    Fix Bug 1.

commit 0984e27b75f480da8b8c4ce2399bf877c557a78d
Author: test <test@mycompany.com>
Date:   Tue Jul 7 14:50:26 2009 -0700

    Fix Bug 2.
git diff --ignore-all-space 0984 e564

-w is shorthand for --ignore-all-space -w是--ignore-all-space的简写

More important is knowing how I found out: 更重要的是知道我是如何发现的:

git help diff

This allowed me to see the various options with explanations. 这让我可以看到各种选项和解释。

只是:

git diff -w 0984e27 e56401

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM