Feature Request: Add `gh stack split` to split the current branch at a chosen commit
- 主要言語
- Go
- スター
- 1.5k
- フォーク
- 70
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 7
説明
## Problem
A branch often grows into two or more reviewable concerns, splitting these after the fact is tedious
Today it requires a manual operation: insert 1 PR above, cherry pick commits from PR1 to new PR2, rebase
If more than 1 split is required, it's even more error prone manipulations
## Proposal
`gh stack split [] [--at ]`
- Current branch keeps commits up to ``
- `` and commits above move to ``, inserted **directly above** the current branch in the stack (if some PR are already stacked above current PR)
- Branches already above are rebased onto the new layer; existing PRs keep their identity, the current PR's base is unchanged
Ideally, interactive mode lists the current branch's commits, user picks the split point and types the new branch name: this could happen in the `gh stack modify` view
コントリビューションガイド
調査の方向性
既存の gh stack コマンドのエントリポイントと gh stack modify ビューから始めます。提案では、そこにインタラクティブな分割選択を統合することが示されています。現在のブランチ、すでにその上にあるブランチ、および pull request の識別情報について分割の動作を定義し、その後、gh stack split が指定されたブランチおよびコミットのオプションをサポートし、記載された stack の関係を維持することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- git, github, go
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100