简体   繁体   中英

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. 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. 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.

Use the toggle-files action. By default it is bound to '%'.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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