VisualStudio icon indicating copy to clipboard operation
VisualStudio copied to clipboard

Support hierarchical (with owner) or flat repository directory layout

Open jcansdale opened this issue 5 years ago • 0 comments

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 into C:\Source\GitHub\repo_name, infer a default directory of C:\Source\GitHub and a flat directory layout
  • If a user clones https://github.com/jcansdale/repo_name into C:\Source\GitHub\jcansdale\repo_name, infer a default directory of C:\Source\GitHub and a directory layout that includes the repository owner
  • Update the name or owner/name component of the local path whenever a different repository is selected (or edited)

How to test

...

Fixes #2428

jcansdale avatar Oct 17 '19 06:10 jcansdale