简体   繁体   English

如何在查看单个文件的差异时查看tig中的完整提交差异?

[英]How to view the full commit diff in tig when viewing the diff for a single file?

In the Tig text-mode interface for git, one can view a blame for an individual file and then open a diff view to see that commit that modified that line. 在git的Tig文本模式界面中,可以查看单个文件的责任,然后打开diff视图以查看修改该行的提交。 eg 例如

tig blame file.cpp
(Select a line, press enter.)

However, the diff displayed is limited to the individual file, even if the commit modified multiple files. 但是,显示的diff仅限于单个文件,即使提交修改了多个文件也是如此。 This is a good default, but is there a way to expand this view to full commit with diff across all files? 这是一个很好的默认值,但有没有办法将这个视图扩展为完全提交所有文件的差异?

The current work around is to copy paste the commit hash, exit, and then use either git or tig to show it. 目前的解决方法是复制粘贴提交哈希,退出,然后使用git或tig来显示它。

Use the toggle-files action. 使用toggle-files操作。 By default it is bound to '%'. 默认情况下,它绑定到'%'。

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

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