在git中浏览文件的历史记录;类似于p4v timelapse [英] Step through a file's history in git; similar to p4v timelapse

查看:162
本文介绍了在git中浏览文件的历史记录;类似于p4v timelapse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻求一种工具来帮助探查文件的历史。具体来说,我想查看文件的全部内容,但能够及时回退和前进。额外的欢乐装饰品,表明与前一刻的差异或其他指定的变化。



目前我使用 git blame ,并可以查看哪些更改会影响每条当前行。然后我必须重新启动该文件的查看器并进行一些特定的提交。这是劳动密集型的,如果一个工具已经自动化了,我很乐意使用它!



Perforce's timelapse view 是迄今为止我见过的最好的工具。

解决方案

git gui blame 是一种选项,虽然它不是很好。



gc_storage from Ansible:

  git gui blame --line = 155 library / cloud / gc_storage 



右键点击一行并选择Blame Parent Commit及时移回,用左上角的查看历史记录箭头返回最近的更改。


I'm seeking a tool to help when probing a file's history. Specifically, I want to view the entire contents of the file, but be able to step backward and forward in time. Extra joy for decorations indicating the diff from previous rev or some other specified rev.

Currently I use git blame, and can see what changes impacted each current line. Then I have to relaunch a viewer for that file with some particular commit. It's labor intensive, and if a tool already automates this I'd love to use it!

Perforce's timelapse view is the best tool to date I've seen for this task.

解决方案

git gui blame is an option, although it's not as good.

Example for gc_storage from Ansible:

git gui blame --line=155 library/cloud/gc_storage

Right click a line and select Blame Parent Commit to move back in time, returning to more recent changes with the view history arrow in the top left.

这篇关于在git中浏览文件的历史记录;类似于p4v timelapse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆