[英]How do I look at a file across revisions?
I'm familiar with using https://github.com/jonas/tig to view my changes, but often I want to see the whole file and quickly run through the changes.我熟悉使用https://github.com/jonas/tig来查看我的更改,但通常我想查看整个文件并快速浏览更改。 I think this "git timemachine" feature doesn't exist in
tig
judging my these bug reports:我觉得这个“混帐时间机器”功能不存在
tig
判断我的这些错误报告:
My workaround is the use tig blame $filename
and hit f
to look at the blob at that revision, which is super awkward since different lines change at different times.我的解决方法是使用
tig blame $filename
并点击f
来查看该修订版中的 blob,这非常尴尬,因为不同的行在不同的时间发生变化。
What am I missing?我错过了什么?
Maybe this binding:也许这个绑定:
bind generic ae !sh -c 'git show $1:$2' -- %(commit) %(file)
then run something like tig -- README.adoc
.然后运行类似
tig -- README.adoc
东西。 Select a commit and hit "ae" to view the file.选择一个提交并点击“ae”以查看文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.