Skip to content

Git - expose rebase() though the extension API#299181

Merged
lszomoru merged 1 commit intomainfrom
lszomoru/sessions-merge-rebase
Mar 4, 2026
Merged

Git - expose rebase() though the extension API#299181
lszomoru merged 1 commit intomainfrom
lszomoru/sessions-merge-rebase

Conversation

@lszomoru
Copy link
Copy Markdown
Member

@lszomoru lszomoru commented Mar 4, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 4, 2026 12:03
@lszomoru lszomoru enabled auto-merge (squash) March 4, 2026 12:03
@lszomoru lszomoru self-assigned this Mar 4, 2026
@lszomoru lszomoru added this to the 1.111.0 milestone Mar 4, 2026
@lszomoru lszomoru added the git GIT issues label Mar 4, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR exposes the Git extension’s existing Repository.rebase(...) capability through the public vscode.git extension API (v1), enabling extension authors to invoke a rebase programmatically.

Changes:

  • Add rebase(branch: string): Promise<void> to the public Repository API type definition.
  • Implement the new API method in ApiRepository by forwarding to the internal repository implementation.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
extensions/git/src/api/git.d.ts Adds rebase(...) to the public Repository interface surfaced to extension consumers.
extensions/git/src/api/api1.ts Wires the new Repository.rebase(...) method through the API wrapper to the internal repository.

@lszomoru lszomoru merged commit 1722624 into main Mar 4, 2026
24 checks passed
@lszomoru lszomoru deleted the lszomoru/sessions-merge-rebase branch March 4, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

git GIT issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants