`/diff` branch mode: allow selecting the base branch
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
### 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_
Beitragsleitfaden
Rechercherichtung
Beginne am Einstiegspunkt des Branch-Modus des `/diff`-Befehls und verfolge, wie der Standard-Branch des Tracking-Remotes ausgewählt wird. Füge eine Möglichkeit hinzu, einen alternativen Basis-Branch anzugeben, und überprüfe anschließend, dass Branch-Diffs mit dem ausgewählten Branch verglichen werden und Änderungen ausschließen, die vom übergeordneten Branch übernommen wurden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- git
- Bereich
- cli
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 64/100