简体   繁体   English

我如何看待tig中一系列提交的组合差异?

[英]How do I see combined diff for a range of commits in tig?

Github shows a combined diff of all the commits made on a branch in a pull request. Github显示了请求请求中分支上所有提交的合并差异。 eg this pull request has three commits and Github shows a combined diff for all those three commits. 例如, 此拉取请求具有三个提交,而Github则显示所有这三个提交的组合差异。

In git itself I can do something like git diff HEAD~<n> to see a combined diff of n commits. 在git本身中,我可以执行git diff HEAD~<n>来查看n提交的组合diff。

How do I do the same in tig? 我该如何在tig中做同样的事情?

Following " How do I use tig to view the diff for a file which is changed but not commited? ", the possible workaround for now would be: 遵循“ 如何使用tig来查看已更改但未提交的文件的差异? ”之后,目前可能的解决方法是:

git diff HEAD~<n> | tig

The tig manual only mentions diff options , but doesn't allow to diff anything else but the previous commit. tig手册仅提及diff选项 ,但不允许对除前一次提交以外的任何内容进行比较。

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

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