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.tt
file
Inferring Directory Layout
- If a user clones
https://github.com/jcansdale/repo_name
intoC:\Source\GitHub\repo_name
, infer a default directory ofC:\Source\GitHub
and a flat directory layout - If a user clones
https://github.com/jcansdale/repo_name
intoC:\Source\GitHub\jcansdale\repo_name
, infer a default directory ofC:\Source\GitHub
and a directory layout that includes the repositoryowner
- Update the
name
orowner/name
component of the local path whenever a different repository is selected (or edited)
How to test
...
Fixes #2428