Skip to content

Adds AI powered rebase and explain feature of a branch #4522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

sergeibbb
Copy link
Member

@sergeibbb sergeibbb commented Aug 6, 2025

Description

Resolves #4443

image

Checklist

  • I have followed the guidelines in the Contributing document
  • My changes follow the coding style of this project
  • My changes build without any errors or warnings
  • My changes have been formatted and linted
  • My changes include any required corresponding changes to the documentation (including CHANGELOG.md and README.md)
  • My changes have been rebased and squashed to the minimal number (typically 1) of relevant commits
  • My changes have a descriptive commit message with a short title, including a Fixes $XXX - or Closes #XXX - prefix to auto-close the issue that your PR addresses

@sergeibbb sergeibbb marked this pull request as draft August 6, 2025 22:38
sergeibbb added a commit that referenced this pull request Aug 7, 2025
Introduces new AI-assisted commands to recompose all branch commits
and specifically unpushed commits via the graph webview.

(#4443, #4522)
sergeibbb added a commit that referenced this pull request Aug 7, 2025
Updates branch context detection to add a '+recomposable' flag for branches that have commits eligible for recomposition, determined by checking recent merge bases against stored targets. Adjusts menu conditions so the AI rebase command is shown only when a branch can be recomposed, preventing unnecessary options for branches without suitable commits.

(#4443, #4522)
sergeibbb added a commit that referenced this pull request Aug 7, 2025
@sergeibbb sergeibbb force-pushed the feature/4443-ai-rebase-on-branch branch from 3fe767e to 7de9ae3 Compare August 7, 2025 23:23
sergeibbb added a commit that referenced this pull request Aug 7, 2025
sergeibbb added a commit that referenced this pull request Aug 7, 2025
sergeibbb added a commit that referenced this pull request Aug 7, 2025
sergeibbb added a commit that referenced this pull request Aug 7, 2025
This uses the user defined value first and only when it's not set we
fall back to other possible values.
(#4443, #4522)
sergeibbb added a commit that referenced this pull request Aug 7, 2025
Introduces AI-powered branch actions ("Recompose" and "Explain") directly into the branches view, enabling context menu options when branches are recomposable or have unpushed commits. Refactors and centralizes branch recomposability detection to ensure consistent logic across graph and views, improving maintainability and user experience. Enhances discoverability and workflow integration for AI-assisted Git operations.

(#4443, #4522)
sergeibbb added a commit that referenced this pull request Aug 8, 2025
Introduces new AI-assisted commands to recompose all branch commits
and specifically unpushed commits via the graph webview.

(#4443, #4522)
sergeibbb added a commit that referenced this pull request Aug 8, 2025
Updates branch context detection to add a '+recomposable' flag for branches that have commits eligible for recomposition, determined by checking recent merge bases against stored targets. Adjusts menu conditions so the AI rebase command is shown only when a branch can be recomposed, preventing unnecessary options for branches without suitable commits.

(#4443, #4522)
sergeibbb added a commit that referenced this pull request Aug 8, 2025
sergeibbb added a commit that referenced this pull request Aug 8, 2025
@sergeibbb sergeibbb force-pushed the feature/4443-ai-rebase-on-branch branch from 7de9ae3 to 5153fa9 Compare August 8, 2025 00:14
sergeibbb added a commit that referenced this pull request Aug 8, 2025
sergeibbb added a commit that referenced this pull request Aug 8, 2025
sergeibbb added a commit that referenced this pull request Aug 8, 2025
This uses the user defined value first and only when it's not set we
fall back to other possible values.
(#4443, #4522)
sergeibbb added a commit that referenced this pull request Aug 8, 2025
Introduces AI-powered branch actions ("Recompose" and "Explain") directly into the branches view, enabling context menu options when branches are recomposable or have unpushed commits. Refactors and centralizes branch recomposability detection to ensure consistent logic across graph and views, improving maintainability and user experience. Enhances discoverability and workflow integration for AI-assisted Git operations.

(#4443, #4522)
@sergeibbb sergeibbb marked this pull request as ready for review August 8, 2025 00:18
Introduces new AI-assisted commands to recompose all branch commits
and specifically unpushed commits via the graph webview.

(#4443, #4522)
Updates branch context detection to add a '+recomposable' flag for branches that have commits eligible for recomposition, determined by checking recent merge bases against stored targets. Adjusts menu conditions so the AI rebase command is shown only when a branch can be recomposed, preventing unnecessary options for branches without suitable commits.

(#4443, #4522)
This uses the user defined value first and only when it's not set we
fall back to other possible values.
(#4443, #4522)
Introduces AI-powered branch actions ("Recompose" and "Explain") directly into the branches view, enabling context menu options when branches are recomposable or have unpushed commits. Refactors and centralizes branch recomposability detection to ensure consistent logic across graph and views, improving maintainability and user experience. Enhances discoverability and workflow integration for AI-assisted Git operations.

(#4443, #4522)
@sergeibbb sergeibbb force-pushed the feature/4443-ai-rebase-on-branch branch from 5153fa9 to 2094d32 Compare August 8, 2025 00:19
@sergeibbb sergeibbb force-pushed the feature/4443-ai-rebase-on-branch branch from 4a7643e to 9d3487c Compare August 8, 2025 14:10
@sergeibbb sergeibbb force-pushed the feature/4443-ai-rebase-on-branch branch from 9d3487c to 0c7d889 Compare August 8, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to generate commits from all changes on a branch
1 participant