git - VS Code 中的 Git 子模块意识不工作
问题描述
使用版本 1.22.2。根据VS Code 1.2 的发行说明,应该了解 Git 子模块。但是,我似乎无法使用此功能:
- 打开一个包含 git 项目的文件夹,该项目又包含子模块
- 在其中一个子模块中进行更改
- 观察到源代码控制视图仅说明主存储库中更改的子模块对象
解决方案
There is basic support in place which lets you stage, unstage or discard submodule changes in the outer repository. You can disable automatic submodule detection with the git.detectSubmodules setting.
I suspect "submodule changes" are only the top tree SHA1 (the gitlink) recorded in the parent repo index, not the files within that submodule.
The gitlink is the diff shown in the picture seen in the release notes:
推荐阅读
- python - 检查 git 上的 Python 包是否比本地更新
- python - Seaborn catplot 透明度定制
- python - 如何获得`bq://project_id'
- python - 使用张量上的字符串操作进行文本预处理
- ansible - Ansible.在远程/之后本地运行任务
- stackdriver - GKE 上的 Stackdriver Trace 与 Python 应用在一个集合中聚合指标
- reactjs - 创建我的第一个 React 项目的问题
- translation - 在将新字段扩展到用户插件后,我如何在 10 月 CMS 上使用翻译插件?
- reactjs - 来自自定义组件的 PrimeReact DataTable 动态列
- django - Django POST 方法不起作用仅获取 GET 方法甚至表单提交