ait diff — 完整參考
用可選的有界路徑和輸出過濾條件,比較目前工作區與已記錄的狀態。
適用對象: 使用者與 coding agent
作用邊界#
用途: 用可選的有界路徑和輸出過濾條件,比較目前工作區與已記錄的狀態。
影響類別: 只讀檢視。
覆蓋: ait diff 下共 1 個公開 help surface。
下面的程式碼區塊原樣保留 1.1.1 二進位的輸出,包含它給出的每一個引數、選項、 預設值、可選值、衝突關係和必填要求。
完整命令樹#
ait diff原樣輸出的 help#
ait diff#
二進位描述: Compare the current workspace with the current Line head without changing repository data or workspace files. With no output option, emit a unified text diff. Use --json for stable machine-readable output, --stat for per-file text statistics, or --name-only for the ordered changed-path list. Positional PATH values select specific workspace-relative files or directory subtrees using lexical matching, not globs.
Compare the current workspace with the current Line head without changing repository data or workspace files. With no output option, emit a unified text diff. Use --json for stable machine-readable output, --stat for per-file text statistics, or --name-only for the ordered changed-path list. Positional PATH values select specific workspace-relative files or directory subtrees using lexical matching, not globs.
Usage: ait diff [OPTIONS] [PATH]...
Arguments:
[PATH]...
Limit the comparison to an exact workspace-relative file or directory subtree. Repeat PATH to combine lexical filters; glob syntax is not supported.
Options:
--json
Emit the stable machine-readable workspace diff.
--stat
Emit per-file text statistics.
--name-only
Emit only the ordered changed-path list.
-h, --help
Print help (see a summary with '-h')說明
比較目前工作區與目前 Line head,不改動儲存庫資料或工作區檔案。未指定輸出選項時給出統一文字 diff。--json 輸出穩定的機器可讀結果,--stat 輸出逐檔案文字統計,--name-only 輸出有序改動路徑列表。位置引數 PATH 以詞法匹配選擇相對工作區的檔案或目錄子樹,不使用 glob。