Skip to content

feat: 支持 git mv 命令, 优化 archive 流程中导致的 git 识别成 D / A 从而变更历史丢失的问题 #127

Description

@chinleo

🔎 Existing issue check

  • I have searched the existing issues.

🧭 Problem

comet-archive 中存在脚本进行归档文件的转移, 但是在 git 环境下, 会导致 实际上是删除旧文件/添加新文件的操作

mkdir -p "openspec/changes/archive"
--
mv "$CHANGE_DIR" "$ARCHIVE_DIR"

✨ Proposed solution

在脚本中添加感知分支, 当前代码库在 git 环境下, 将 mv 命令替换为 git mv

🎯 Primary area

Shell script

🪐 Workflow phase

Archive

🔀 Alternatives considered

No response

🧰 Compatibility notes

No response

🧩 Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions