我可以在Visual Studio中将SourceTree设置为外部工具来查看当前文件的日志吗?

编程入门 行业动态 更新时间:2024-10-26 06:38:28
本文介绍了我可以在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设置为外部工具来查看当前文件的日志吗?

本文发布于:2023-11-05 09:08:53,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:设置为   中将   文件   工具   日志

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!