
Repository > Add folder
Improve user experience when working with complex multi repository projects.
Terminology:
- git repository container - folder which may be git repository folder or may contain other git repository containers
Use case:
- there is main folder which is git repository container
- structure may contain repeated names
Why existing features does not work:
- Search for repositories - allow you to find for nested git repositories and import them. Not sure it can handle duplicate names (when path is different). Also (what is more important) it flattens the structure cause it does not open folder itself it open separate git repositories within a folder.
Suggested approach:
- When 'Repository > Add directory' is opened - show dialog to open a directory
- Dialog should allow you to select existing folder
- When you click 'OK' selected folder will be added to the list of open repositories
- If selected folder is a git repository it should be treated as regular git repository
- If selected folder is a git repository container - it should be marked as such (with different color or whatever). Same applies to nested folders if they are git repository containers
Enhancement:
- Add 'import as groups' check:
- - When not checked - will open folder as git repository or git repository container (see previous section)
- - When checked - if directory is:
- - - regular git repository - create new group, add git repository to this group
- - - git repository container - add new group, add all nested git repository containers as nested groups, add all nested git repositories to corresponding groups
Alternative:
- Enhance existing "search for repositories" feature allow adding them as a tree as well
Thanks for your attention
s. sorry for not using lists unfortunately your formatter is not good enough and just couldn't format text properly
Customer support service by UserEcho
Well I suggest add two options for user and let him choose what he want. Options are:
- Enhance "Search for Repositories" currently it finds all repositories in particular folder and them to list of repositories. But this structure is flat while directory may contain nested projects with similar names like: <selected folder>\nested-project-a\nested-project-b and <selected folder>\nested-project-c\nested-project-b. Not sure if it will be able to add both cause they have same name. Instead allow it to import projects while preserving hierarchy. So non git-repository folders will be navigable as git repositories but they will have less actions available (cause they do not need some actions like commit, pull etc). I understand that currently adding folders is not supported but at least you can let user choose option: "import as groups" and create groups automatically based on folder structure. For each folder which is not an git repository create group and move add nested git repositories to it. For nested folders create nested group and so on.
- More advanced alternative partially described in previous option: allow adding directories not only git repositories. Currently if you are trying add folder it enforces you to initialize it as git repository. So basically you can change existing dialog "Repository > Add or Create" than "Select directory", "OK". It shows another dialog "Add or Create repository" with two options: "Initialize" and "Cancel". You can add 3rd option: "Open as folder" and show it in the list of repositories as like regular repository but with difference set of allowed actions