New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch repos to a subrepo by clicking on it in the Commit Details View file tree #155
Comments
Hi Patrick, Submodules can already be added to Git Graph by running the I'm not sure if you're asking for other functionality, and I've misinterpreted your request. If I have, please provide more information to describe what you would like implemented, so I can better understand your request. Additionally, please clarify what you mean by "submodule modification" and "show an error tips". |
Hi Patrick, It seems like your request is that you would like Git Graph to automatically switch from the parent repo to display the submodule repo in the Git Graph view, if the user is attempting to view the diff of a file that occurs within the submodule. Is this correct? Could you please provide:
|
@patrickyyang Apologies, I forgot that subrepos are not detected by the maxDepthORepoSearch when writing my previous response. The reason why they cannot be automatically scanned is due to the exponential search cost this adds when the extension is searching for repos (that occurs every time Visual Studio Code is opened), as the extension would have to traverse the entire directory structure (on large projects and workspaces this is extremely slow). That is why the “Add Git Repository” command was added, to avoid the need for scanning the entire workspace. From the extensions perspective, the git command used to get the data for the file tree returns what appears to be a file (it has no idea that it is actually a sub repo). I’ll make an adjustment to the logic so that if the sub repo appears in the file tree of the Commit Details View, and it is known to be a subrepo by the extension (the user has manually added it via the command), it will display it as a repo in the tree. Clicking on the subrepos name in the file tree will switch the current repo displayed in Git Graph to it. Thanks for making this feature request, it’s definitely a nice improvement. |
Thanks for developing this new feature, This extension is very awesome. |
… file tree, clicking on it will now load it in the Git Graph View.
This will be available in v1.13.0, which will be released in the next day. |
When click the submodule modification in git graph, it will show an error tips.
Maybe should jump to a new graph page, and show the selected submodule's logs.
The text was updated successfully, but these errors were encountered: