`/diff` branch mode: allow selecting the base branch
- Lenguaje dominante
- Shell
- Estrellas
- 11.2k
- Forks
- 1.9k
- Merge medio
- 14 h 16 min
- PR fusionados (30 d)
- 6
Descripción
### 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_
Guía de contribución
Línea de trabajo
Comienza en el punto de entrada del modo de ramas del comando `/diff` y sigue cómo selecciona la rama predeterminada del remoto de seguimiento. Añade una forma de proporcionar una rama base alternativa y, después, verifica que las diferencias entre ramas se comparen con la rama seleccionada y excluyan los cambios heredados de la rama principal.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- git
- Área
- cli
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 64/100