gh "base repository" not worktree specific
- 主要言語
- Go
- スター
- 46.3k
- フォーク
- 9k
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 97
説明
gh version 1.0.0 (2020-09-16)
Setup: a "bare" git repository with multiple remotes and multiple git worktrees. For example: both https://github.com/llvm/llvm-project and https://github.com/apple/llvm-project
Problem: Unlike similar git workflows, `gh` asks the user to pick a "base repository" which is tied to the bare repository, not branches nor worktrees.
Workaround: create a wrapper around `gh` that tries to set `GH_REPO` as needed. In short, the script will extract the GitHub URL from git and pass it to gh: `git config remote.$(git config branch.$(git branch --show-current).remote).url`
Finally, and unless I missed something, the "base repository" feature seems undocumented.
コントリビューションガイド
調査の方向性
まず、複数のリモートとworktreeを使用したbareリポジトリのセットアップを再現し、その後、ghにおけるベースリポジトリ選択のエントリーポイントと、Git設定の読み取り方法を調べます。選択されたベースリポジトリがアクティブなworktreeまたはブランチに従い、これまで文書化されていなかったベースリポジトリの動作が文書化されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- git, go
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100