如何跨修订查看文件?

How do I look at a file across revisions?

我熟悉使用 https://github.com/jonas/tig 查看我的更改,但我经常想查看整个文件并快速 运行 完成更改。根据我的这些错误报告,我认为 tig 中不存在这个“git timemachine”功能:

我的解决方法是使用 tig blame $filename 并点击 f 来查看该版本的 blob,这非常尴尬,因为不同的行在不同的时间发生变化。

我错过了什么?

也许这个绑定:

bind generic V !sh -c 'git show :' -- %(commit) %(fileargs)

然后 运行 类似 tig -- README.adoc。 Select 提交并点击“V”查看文件。