VisualStudio
VisualStudio copied to clipboard
Support hierarchical (with owner) or flat repository directory layout
Remember the repository directory and layout after a user clones a repository. This mirrors a similar feature which has been used for a long time in GitHub Desktop. It means users don't need to discover the default clone location directory option.
What this PR does
- Infer and store the default clone directory after cloning
- Infer and store the default directory layout after cloning (flat or
owner/repositoryName) - Fix broken
PackageSettingsGen.ttfile
Inferring Directory Layout
- If a user clones
https://github.com/jcansdale/repo_nameintoC:\Source\GitHub\repo_name, infer a default directory ofC:\Source\GitHuband a flat directory layout - If a user clones
https://github.com/jcansdale/repo_nameintoC:\Source\GitHub\jcansdale\repo_name, infer a default directory ofC:\Source\GitHuband a directory layout that includes the repositoryowner - Update the
nameorowner/namecomponent of the local path whenever a different repository is selected (or edited)
How to test
...
Fixes #2428