ait change — 完整參考
在一個 Task 內建立、檢視、更新、取消以及以其他方式管理 Change 的生命週期。
適用對象: coding agent 與維護者
作用邊界#
用途: 在一個 Task 內建立、檢視、更新、取消以及以其他方式管理 Change 的生命週期。
影響類別: 既讀取 Change,也改動它的生命週期。
覆蓋: ait change 下共 8 個公開 help surface。
下面的程式碼區塊原樣保留 1.1.1 二進位的輸出,包含它給出的每一個引數、選項、 預設值、可選值、衝突關係和必填要求。
完整命令樹#
ait change
ait change create
ait change list
ait change show
ait change revert
ait change replay
ait change close
ait change publish原樣輸出的 help#
ait change#
二進位描述: Create, inspect, publish, or close Task-owned Changes.
Create, inspect, publish, or close Task-owned Changes.
Usage: ait change <COMMAND>
Commands:
create Create an additional Change for an existing Task.
list List open Changes or complete Change history locally or on a remote.
show Inspect one Task-owned Change without changing it.
revert Remove one Change's recorded delta from the current workspace.
replay Apply one Change's recorded delta to the current workspace.
close Archive one Change without finishing it.
publish Promote one local draft Change record to a remote.
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help說明
建立、檢視、發布或關閉 Task 所屬的 Change。
| 引數 / 選項 | 說明 |
|---|---|
create | 為一個已有 Task 再建立一個 Change。 |
list | 在本地或遠端列出開放的 Change 或完整 Change 歷史。 |
show | 檢視一個 Task 所屬的 Change,但不作改動。 |
revert | 從目前工作區移除一個 Change 記錄的增量。 |
replay | 將一個 Change 記錄的增量應用到目前工作區。 |
close | 歸檔一個 Change 而不完成它。 |
publish | 將一個本地草稿 Change 記錄晉升到遠端。 |
help | 列印本訊息或給定子命令的幫助 |
-h, --help | 列印幫助 |
ait change create#
二進位描述: Create an additional Change for an existing Task.
Create an additional Change for an existing Task.
Usage: ait change create [OPTIONS] --title <TITLE> <TASK_ID>
Arguments:
<TASK_ID> Existing Task ID that will own the new Change.
Options:
--title <TITLE> Required title for the new Change.
--base-line <LINE> Base Line assertion; defaults to the bound worktree target Line, then the repository default Line.
--local Create the Change locally even when Change commands default to a remote.
--remote <REMOTE> Create the Change on the named remote even when Change commands default to local.
--json Emit stable machine-readable JSON.
-h, --help Print help說明
為一個已有 Task 再建立一個 Change。
| 引數 / 選項 | 說明 |
|---|---|
<TASK_ID> | 將擁有新 Change 的現有 Task ID。 |
--title <TITLE> | 新 Change 的必填標題。 |
--base-line <LINE> | 基 Line 斷言;預設為繫結 worktree 的目標 Line,其次為儲存庫預設 Line。 |
--local | 即使 Change 命令預設使用遠端,也在本地建立 Change。 |
--remote <REMOTE> | 即使 Change 命令預設使用本地,也在指定遠端建立 Change。 |
--json | 輸出穩定的機器可讀 JSON。 |
-h, --help | 列印幫助 |
ait change list#
二進位描述: List open Changes or complete Change history locally or on a remote.
List open Changes or complete Change history locally or on a remote.
Usage: ait change list [OPTIONS]
Options:
--local List local Changes even when Change commands default to a remote.
--remote <REMOTE> List Changes from the named remote even when Change commands default to local.
--all Show complete Change history instead of the bounded open view.
--json Emit stable machine-readable JSON; the bounded view still applies unless --all is present.
-h, --help Print help說明
在本地或遠端列出開放的 Change 或完整 Change 歷史。
| 引數 / 選項 | 說明 |
|---|---|
--local | 即使 Change 命令預設為遠端,也列出本地 Change。 |
--remote <REMOTE> | 即使 Change 命令預設為本地,也列出指定遠端上的 Change。 |
--all | 顯示完整的 Change 歷史,而不是有界的開放檢視。 |
--json | 輸出穩定的機器可讀 JSON;除非給出 --all,有界檢視仍然適用。 |
-h, --help | 列印幫助 |
ait change show#
二進位描述: Inspect one Task-owned Change without changing it.
Inspect one Task-owned Change without changing it.
Usage: ait change show [OPTIONS] <TASK_ID/C-##>
Arguments:
<TASK_ID/C-##> Task-owned Change reference; a bare C-## is accepted only when it identifies one Change.
Options:
--local Read the local Change even when Change commands default to a remote.
--remote <REMOTE> Read the Change from the named remote even when Change commands default to local.
--json Emit the complete stable machine-readable Change payload.
-h, --help Print help說明
檢視一個 Task 所屬的 Change,但不作改動。
| 引數 / 選項 | 說明 |
|---|---|
<TASK_ID/C-##> | Task 所屬的 Change 引用;裸 C-## 只有在能標識唯一 Change 時才被接受。 |
--local | 即使 Change 命令預設為遠端,也讀取本地 Change。 |
--remote <REMOTE> | 即使 Change 命令預設為本地,也讀取指定遠端上的 Change。 |
--json | 輸出完整且穩定的機器可讀 Change 載荷。 |
-h, --help | 列印幫助 |
ait change revert#
二進位描述: Remove one Change's recorded fork-to-revision delta from the current workspace. This does not create a Snapshot, move the current Line head, close the Change, or change remote data.
Remove one Change's recorded fork-to-revision delta from the current workspace. This does not create a Snapshot, move the current Line head, close the Change, or change remote data.
Usage: ait change revert [OPTIONS] <TASK_ID/C-##>
Arguments:
<TASK_ID/C-##>
Task-owned Change whose recorded delta will be removed from the workspace.
Options:
--force
Overwrite unsaved changes on paths selected by the Change delta.
--dry-run
Preview affected paths and overwrite risk without modifying the workspace.
--local
Read the Change's local history even when Change commands default to a remote.
--remote <REMOTE>
Read the Change's history from the named remote; only local workspace files are changed.
--json
Emit the complete stable machine-readable workspace plan or result.
-h, --help
Print help (see a summary with '-h')說明
從目前工作區移除一個 Change 已記錄的 fork 到修訂差異。此操作不會建立 Snapshot、移動目前 Line head、關閉 Change 或改動遠端資料。
ait change replay#
二進位描述: Apply one Change's recorded fork-to-revision delta to the current Line workspace. This does not create a Snapshot, move the Line head, finish the Change, or change remote data.
Apply one Change's recorded fork-to-revision delta to the current Line workspace. This does not create a Snapshot, move the Line head, finish the Change, or change remote data.
Usage: ait change replay [OPTIONS] <TASK_ID/C-##>
Arguments:
<TASK_ID/C-##>
Task-owned Change whose recorded delta will be applied to the workspace.
Options:
--force
Overwrite unsaved changes on paths selected by the Change delta.
--dry-run
Preview affected paths and overwrite risk without modifying the workspace.
--local
Read the Change's local history even when Change commands default to a remote.
--remote <REMOTE>
Read the Change's history from the named remote; only local workspace files are changed.
--json
Emit the complete stable machine-readable workspace plan or result.
-h, --help
Print help (see a summary with '-h')說明
把一個 Change 已記錄的 fork 到修訂差異應用到目前 Line 工作區。此操作不會建立 Snapshot、移動 Line head、落地 Change 或改動遠端資料。
ait change close#
二進位描述: Archive one local or remote Change without applying its code to the target Line. A successful close also attempts a bounded safe Plan repair for the owning Task.
Archive one local or remote Change without applying its code to the target Line. A successful close also attempts a bounded safe Plan repair for the owning Task.
Usage: ait change close [OPTIONS] <TASK_ID/C-##>
Arguments:
<TASK_ID/C-##>
Task-owned Change to archive without applying it to the target Line.
Options:
--local
Archive the local Change even when Change commands default to a remote.
--remote <REMOTE>
Archive the Change on the named remote even when Change commands default to local.
--json
Emit the complete stable machine-readable closeout payload.
-h, --help
Print help (see a summary with '-h')說明
歸檔一個本地或遠端 Change,但不落地程式碼。成功關閉時還會嘗試為所屬 Task 執行有界且安全的 Plan 修復。
ait change publish#
二進位描述: Promote one local draft Change record to the configured or named remote. This does not publish a Patchset, publish current workspace content, or finish the Change.
Promote one local draft Change record to the configured or named remote. This does not publish a Patchset, publish current workspace content, or finish the Change.
Usage: ait change publish [OPTIONS] <TASK_ID/C-##>
Arguments:
<TASK_ID/C-##>
Local Task-owned draft Change to promote.
Options:
--remote <REMOTE>
Destination remote; omitted uses the repository default remote.
--json
Emit the complete stable machine-readable publication payload.
-h, --help
Print help (see a summary with '-h')說明
將一個本地草稿 Change 記錄晉升到設定的或指定名稱的遠端。此操作不會發布 Patchset、發布目前工作區內容,也不會落地該 Change。