github / github/copilot-cli

`/diff` allows you to choose base branch for `branch diff` view

Open
#4,635 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

Describe the feature or problem you'd like to solve

In Copilot CLI, the /diff command should allow you to be able to set the base branch when viewing in branch diff mode vs local edits.

Proposed solution

If I'm working on branch b with the following format:
develop -> branch a (feature) -> branch b (jira task)
I want the branch change mode for /diff on branch b to reflect the branch diff vs branch a, not automatically determined develop.

Example prompts or workflows

/diff set-base <branch>

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Copilot CLI implementation of the /diff command and its branch diff mode. Trace how the base branch is currently determined, then assess the proposed /diff set-base <branch> workflow. Done means branch diff mode can use the explicitly selected base branch instead of the automatically determined branch, while local edits remain distinct.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.