Skip to content

[#395] github-issue-395-add-pull-from#397

Draft
nrslib wants to merge 1 commit intomainfrom
takt/395/github-issue-395-add-pull-from
Draft

[#395] github-issue-395-add-pull-from#397
nrslib wants to merge 1 commit intomainfrom
takt/395/github-issue-395-add-pull-from

Conversation

@nrslib
Copy link
Owner

@nrslib nrslib commented Feb 26, 2026

Summary

概要

takt list のアクションメニューに「Pull from remote」を追加する。

背景

別のPCで作業ブランチを更新して push した場合、現在のPCの takt-worktrees 配下のクローンにはリモートの変更を取り込む手段がない(origin が削除されているため)。

実装方針

  1. takt list のアクションメニューに Pull from remote を追加
  2. 選択時の処理:
    • ルートリポジトリの origin URL を取得
    • クローン内で一時的に git remote add origin <url>
    • git pull origin <branch> で最新化
    • git remote remove origin で隔離状態に戻す
  3. fast-forward できない場合はエラーメッセージを表示

UI イメージ

? Select action:
  ❯ View diff
    Instruct
    Merge from root
    Pull from remote    ← NEW
    Try merge
    Merge & cleanup
    Delete

Execution Report

Piece default completed successfully.

Closes #395

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 'Pull from remote' action to takt list

1 participant