github / github/copilot-cli

`/diff` branch mode: allow selecting the base branch

Ouverte
#3,903 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area:tools
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

### 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_

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez au point d’entrée du mode branche de la commande `/diff` et suivez la manière dont elle sélectionne la branche par défaut du remote de suivi. Ajoutez un moyen de fournir une branche de base alternative, puis vérifiez que les différences entre branches sont comparées à la branche sélectionnée et excluent les changements hérités de la branche parente.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
git
Domaine
cli
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
64/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.