简体   繁体   English

在tig中,有没有办法查看所有文件的diff,例如Github pull request

[英]In tig, is there a way to view diff for all files like Github pull request

In tig, when showing diff view, we can only view diff per commits. 在tig中,当显示差异视图时,我们只能查看每个提交的差异。 What I want to achieve is a way to view diff for all files (just like git diff or Github Pull Request diff view). 我想要实现的是一种查看所有文件的差异的方法(就像git diff或Github Pull Request差异视图一样)。 Is there a way or a mode to do that? 有没有办法做到这一点? Example image: https://i.imgur.com/evIe71O.png 范例图片: https : //i.imgur.com/evIe71O.png

Don't know what you mean all files . 不知道all files意思。 diff view is already a pager for git diff . diff视图已经是git diff的寻呼机。 If you want to increase chunk context, just press ] or set it in .tigrc like 如果要增加块上下文,只需按]或在.tigrc设置它,例如

set diff-context = 300 # Number of lines to show around diff changes (diff)

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

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