浏览 1.1.1 文档
1.1.1

ait diff — 完整参考

用可选的有界路径和输出过滤条件,比较当前工作区与已记录的状态。

适用人群: 用户与 coding agent

作用边界#

用途: 用可选的有界路径和输出过滤条件,比较当前工作区与已记录的状态。

影响类别: 只读查看。

覆盖: ait diff 下共 1 个公开 help surface。

下面的代码块原样保留 1.1.1 二进制的输出,包含它给出的每一个参数、选项、 默认值、可选值、冲突关系和必填要求。

完整命令树#

代码 · text
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.

代码 · text
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。

版本权威

对照 1.1.1 源码逐条核对

这一页是公开文档,不是第二份产品契约。要确认发布权威,请以确切的源码和分发契约为准。

所属组件 Snapshot
  • ait-coreSNP-ED7593DBF982
  • ait-serverSNP-0CCD7DD2A077
  • ait-runnerSNP-35C9C133D2EE
  • ait-pythonSNP-756C731A4CC0
  • ait-nodeSNP-55E90D0A81F1