3

Closed

Automatically switch to the Git provider when loading a Git-controlled solution

description

Thank you for the insights. While I share the idea that the solution file should better not be touched by the source control provider, I'd definitely like to see more ease of use when working with both SVN and Git. Maybe there could be some option for the Git provider to stay in memory, or another VS add-in to do the switch automatically when loading a Git-controlled solution? If that's technically possible. I've tried recording a macro, but all it contained was the command to open the settings dialogue, no details about what happened in there.
Closed Feb 9, 2012 at 12:16 PM by
fixed in V0.9.1

comments

ulu wrote Dec 2, 2011 at 2:07 PM

If a VS solution is modified, I guess you still cannot load the git provider automatically, right?

I've spent enough time switching to it (I've got another project that uses TFS) that I'm willing to submit a patch. Shall we write a VS addon that would load the provider automatically, or just add an option to the provider itself?

yysun wrote Dec 5, 2011 at 8:53 PM

I am experimenting to add another small VS package that auto loaded when solution exists. This package will automatically switch to gitscc. Therefore hopefully I can have the auto-switch without modifying the solution file.

ulu wrote Dec 6, 2011 at 7:41 AM

If you need a hand, I'll be glad to help.

yysun wrote Dec 6, 2011 at 2:30 PM

@ulu,Thanks for your offer to help. It is much needed.

I have pushed the latest code to github, you can play with it.
Or you can help test the latest build in the attachments here.

ulu wrote Dec 6, 2011 at 4:59 PM

Just installed the attached package. Works on my machine. I'll take a look at the code later, but it seems like the issue is solved.

Thanks for the great work!

joneff wrote Jan 4, 2012 at 10:14 AM

Something related to that change keeps trying change my TFS bindings to Git ones. Indeed, there are parts of the project that are Git controlled, but globally, the entire solution resides in TFS.

I'd love to send you the solution, but it's kinda confidential and huge

yysun wrote Jan 7, 2012 at 2:17 PM

@joneff, visual studio only supports one source control system for one solution. Maybe we can add an option to disable automatic switching to Git source control provider in future release.

joneff wrote Jan 9, 2012 at 6:32 AM

yysun, a checkbox to disable automatic switching will be more than enough :)

joneff wrote Feb 24, 2012 at 4:44 PM

It appears that every time I update / install a new extension, that setting is not acknowledged (it's still checked in the UI).

The way to reapply it is to close all instances of VS; then start a new one; then uncheck the box; close; start a new one; set it; close; open my projects.

Another interesting thing is that if only Git Extensions are updated, that doesn't happen.

Strange...