`/diff` branch mode: allow selecting the base branch
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
### Describe the feature or problem you'd like to solve
When using `/diff` in branch mode, the base branch is auto-detected as the default branch of the tracking remote (e.g., `origin/main` ). There's no way to override this - if your branch was cut from something other than the default branch, the diff includes noise from the parent branch rather than just your changes.
### Proposed solution
Allow specifying a base branch when using branch diff mode - e.g., a text input when selecting "Branch diff", or a parameter like `/diff base=feature/xyz` . This would let users diff against any branch, not just the remote default.
### Example prompts or workflows
- Working on a branch cut from `feature/parent` - want to see only changes since that branch, not since `main`
- Comparing work against a release branch rather than the repo default
### Additional context
_No response_
貢獻指南
研究方向
從 `/diff` 命令的分支模式入口開始,追蹤它如何選取追蹤遠端的預設分支。新增提供替代基底分支的方式,然後驗證分支 diff 是與所選分支進行比較,並排除從父分支繼承的變更。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- git
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 64/100