-
Notifications
You must be signed in to change notification settings - Fork 329
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
Add submodules display #1374
Add submodules display #1374
Conversation
Yes that makes sense 👍 This would probably require integrating other |
jupyterlab_git/handlers.py
Outdated
@@ -1069,6 +1069,24 @@ async def post(self, path: str = ""): | |||
self.finish(json.dumps(response)) | |||
|
|||
|
|||
class GitSubModulesHandler(GitHandler): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nitpick: should SubModule
be spelled Submodule
instead?
Looks like this is what the git docs use: https://git-scm.com/book/en/v2/Git-Tools-Submodules
Wondering about this, if we start exposing classes and other interfaces which include the word "submodule" in their name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Addresses #1355.
Adds a display for submodules in the current repo inspired by the branch menu. Currently this just displays the submodules that are present and doesn't have any functionality. I figure how to handle the submodules and which functionality should be exposed should be discussed first.
Repo with no submodules:
![no_subs](https://private-user-images.githubusercontent.com/86261987/381554665-79e0080c-d666-4e90-847a-a73c18ba1756.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTk5NjgsIm5iZiI6MTczOTI1OTY2OCwicGF0aCI6Ii84NjI2MTk4Ny8zODE1NTQ2NjUtNzllMDA4MGMtZDY2Ni00ZTkwLTg0N2EtYTczYzE4YmExNzU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA3NDEwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUzNmZlOGQyMjdhNTI4OWM3MjdkNzM5Zjg0MjU3ZjZmOTkxY2NiMmM3YjNhODdiNTQzMTg4NTM0YjExMjhlMTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.33O1vPmWZQUb1woLZu9kwr-utiosMH2Zafvfym9Mark)
Repo with submodules - collapsed:
![subs-collapse](https://private-user-images.githubusercontent.com/86261987/381555188-bbb4ea8f-53ad-454f-8fc8-68dca0048d2c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTk5NjgsIm5iZiI6MTczOTI1OTY2OCwicGF0aCI6Ii84NjI2MTk4Ny8zODE1NTUxODgtYmJiNGVhOGYtNTNhZC00NTRmLThmYzgtNjhkY2EwMDQ4ZDJjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA3NDEwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA5MzAzZjg4ZmUwOWM1OTljMzY5MDcyOThhMGM5ZDA3YmM4MjdiYTFkN2ViZjlkOWI4YTQ0NjlhZmRkZmI0YWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.rwoyGHNbbZHBcS0bHf6I_1VUlOm3XsYk26UaPjlARmU)
Repo with submodules - expanded:
![subs](https://private-user-images.githubusercontent.com/86261987/381554759-09fedaf1-8ffa-4a8d-9ad2-be6d607aa2a1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTk5NjgsIm5iZiI6MTczOTI1OTY2OCwicGF0aCI6Ii84NjI2MTk4Ny8zODE1NTQ3NTktMDlmZWRhZjEtOGZmYS00YThkLTlhZDItYmU2ZDYwN2FhMmExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA3NDEwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ4MzI4NzE4YjkyNmVkODczZmZmMzhjMDhmNDdhNDk5YWMyMWUxYzQxMDliNDY2NmUwMjBiYzhiNzdmMzc0ZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ffnEHSF0d2uaZu2opOY0Ub3m6PqGMcxElLOv-x_kgh4)