我可以在Visual Studio中将SourceTree设置为外部工具来查看当前文件的日志吗? [英] Can i set up SourceTree as external tool in Visual Studio to view log for current file?

查看:444
本文介绍了我可以在Visual Studio中将SourceTree设置为外部工具来查看当前文件的日志吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

右键单击SourceTree日志中的文件时,我可以选择Log selected ...并获取该特定文件的日志视图。有没有什么办法可以在Visual Studio中将SourceTree设置为外部工具,并通过$(ItemPath)打开当前文件的日志视图。



我想要一种方式来查看特定文件的日志,而不必首先在提交中查找文件。



如果可能的话,我还想设置从sourcetree中选择Blame selected ...选项作为当前文件的外部工具。



我将SourceTree与Git和Visual Studio 2012结合使用。

p>

解决方案

Visual Studio 2012的意思是:


  • 要么使用(默认包含VS 2013),您必须在资源管理器中选择文件以查看其历史记录:



    但是:

    这并不意味着您已经对该文件进行了搜索,因为您可以同步编辑器与资源管理器



    工具 - 选项 - 项目和解决方案 - 常规 - 在解决方案资源管理器中跟踪活动项目




(或使用 this extension )。



这比安装/声明第三方工具更容易。


When right clicking a file in the SourceTree log I can choose "Log selected..." and get a log view for that specific file. Is there any way I could set up SourceTree as an External Tool in Visual Studio and pass it $(ItemPath) to have it open that log view for the current file.

I'd like a way to to view the log for a specific file without having to find the file in a commit first.

If possible I'd like to also set up the "Blame selected..." option from sourcetree as an external tool for the current file.

I'm using SourceTree with Git and Visual Studio 2012.

解决方案

Visual Studio 2012 means:

  • either using Git Extensions, and you can easily call a log on a specific file there.

  • or using VS Tools for Git extension (included by default is VS 2013), and there you have to select the file in the explorer to see its history:

    But:
    That doesn't mean you have too "search" for that file though, since you can synchronize the Editor with the Explorer:

    Tools - Options - Projects and Solutions - General - Track Active Item In Solution Explorer

(or use this extension).

That seems easier than install/declare a third-party tool.

这篇关于我可以在Visual Studio中将SourceTree设置为外部工具来查看当前文件的日志吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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