github / github/copilot-cli

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

Aberta
#3,903 0 comentários 0 reações 0 responsáveis Ver no GitHub
area:tools
Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece pelo ponto de entrada do modo de branch do comando `/diff` e rastreie como ele seleciona a branch padrão do remote de tracking. Adicione uma forma de fornecer uma branch base alternativa e, em seguida, verifique se os diffs entre branches são comparados com a branch selecionada e excluem as alterações herdadas da branch pai.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
git
Domínio
cli
Tipo de issue
Funcionalidade
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Pouca atividade
Clareza
Razoavelmente clara
Facilidade para iniciantes
64/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.