Can i set up SourceTree as external tool in Visual Studio to view log for current file?

混江龙づ霸主 提交于 2019-12-07 02:32:24

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/20288531/can-i-set-up-sourcetree-as-external-tool-in-visual-studio-to-view-log-for-curren

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!