Support for all Git repositories
Opened this issue · 4 comments
Would be cool if all kind of git repositories would be supported and not only GitHub
CodePlex and Bitbucket come to mind. Anything that uses git should be relatively easy to incorporate.
Did you have any others in mind?
SourceBrowser.SolutionRetriever.GitHubSolutionRetriever
uses LibGit2Sharp
library and it will work with any git provider. The class should be renamed to GitSolutionRetriever
when we support other git sources.
SourceBrowser.SolutionRetriever.GitHubInformationRetriever
uses the Octokit
library and it will work only with GitHub. Other git sources will require their own retrievers. The retrievers are not necessary for SourceBrowser to work, but we'd rather have them for good user experience. The retriever currently fetches user's avatar, website and full name.
The other issue is going to be dealing with name conflicts on the various websites.
Since there could be two different users on different platforms both having the same name, we could prefix the user's folder name with the name of the source (github or bitbucket) and a character which is invalid on these sources (a space, or shift+[0-9]).
For example, SB_Files/github CodeConnect/SourceBrowser/