Skip to content

【优化建议】希望支持在 Git 子目录工作区下,右侧面板展示变更与提交 #315

Description

@2020init

1. 使用场景
为保持对话上下文聚焦,我通常只打开 Git 仓库的某个子模块进行开发(例如只打开 MyProject/app/module1)。

2. 目录结构

MyProject/             <-- Git 仓库根目录
 ├── .git/             
 └── app/          
      ├── module1/     <-- 当前打开的工作区
      └── module2/

3. 当前表现
从子目录打开时,右侧面板提示“不是 Git 仓库”,无法查看变更和提交说明。

4. 期望行为
支持向上递归查找 .git 目录。即使打开的是子文件夹,也能识别到父级仓库,并在右侧面板正常展示 Git 状态。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions