Skip to content

fix: cleanup_worktrees が ignore されたファイルを確かめずに worktree を強制削除する #4

Closed

Description

@furedea-agent

cleanup_worktrees.py が,マージ済みの worktree を削除するとき,ignore されたファイルを確かめずに --force を使う.
ignore されたファイル(ローカルの設定やビルド成果物など)に残したい物があっても,黙って消える可能性がある.まず再現してから直す.

状況 現在 期待
マージ済み・追跡ファイルは clean・ignore されたファイルあり --force で削除 削除しないで報告する,または ignore されたファイルを確認した上で削除する

受け入れ条件

  • ignore されたファイルが残る worktree での挙動を再現するテストがある
  • 失われてはいけないファイルがある worktree を黙って消さない
  • 方針(残して報告するか,確認して消すか)を決め,--dry-run の出力にも反映する
  • 既存の test_cleanup_worktrees*.py がすべて通る
出典と前提

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions