简体   繁体   English

tig 责备视图:如何在加载父提交后返回(子提交)

[英]tig blame view: How to come back (child commit) after loading parent commit

In a blame view, I use ',' to load blame for the parent commit.在责备视图中,我使用 ',' 来加载父提交的责备。 How to come back to the child?如何回到孩子身边?

How I use TIG blame view:我如何使用 TIG 责备视图:

  • Step backwards in time to the commit of a given line (B key)及时回退到给定行(B 键)的提交
  • Step backwards to the parent commit of a given line (, key).后退到给定行 (, key) 的父提交。
  • Stepping forwards can be done by going to the main view (m key), selecting a more recent revision, and entering blame view again (B key).前进可以通过转到主视图(m 键),选择更新的版本,然后再次进入错误视图(B 键)来完成。

It does not preserve the viewing location when stepping to a parent commit (it seems to when using the line's commit).步进到父提交时,它不会保留查看位置(似乎在使用行的提交时)。

(From my answer elsewhere https://stackoverflow.com/a/15301595/331858 ) (来自我在别处的回答https://stackoverflow.com/a/15301595/331858

你可以用<回到孩子身边,即shift + ,

Example usage pattern:示例使用模式:

Open tig in your git repository's folder:在 git 存储库的文件夹中打开tig

cd your/repo
tig

  1. Use up / down cursor keys - to select the revision you want to start from使用向上/向下光标键 - 选择您想要开始的修订
  2. t - enter tree view t - 进入树状视图
  3. up / down / enter to find the file you want上/下/回车找到你想要的文件
  4. b to open blame view b打开怪视图
  5. up / down - to move up and down the lines in the file up / down - 上下移动文件中的行
  6. View full patch for selected line:查看所选行的完整补丁:
    • enter to view the last patch for that line输入查看该行的最后一个补丁
    • q to close the patch view q关闭补丁视图
  7. To view older versions:查看旧版本:
    • , - to show the blame of the file from before this patch , - 显示此补丁之前文件的责任
    • < (ie shift+, ) to step back out to more recent versions of the file < (即shift+, )退回到文件的更新版本

You can jump straight to a file with:你可以直接跳转到一个文件:

tig blame filename

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

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