dcloud git commits compare-files

List the files that differ between two refs, in pages

IAM git:PullRepositoryRead

Paged: a large change is read a page of files and a page of rows at a time, never as one payload. A file with more than 1,500 changed lines, or a lock file or build output, has `collapsed` set (the console folds it until asked); a file whose patch is over 16 MiB answers `state: too-large`. Lines longer than 10,000 characters are cut, with the number left out in `cut`.

Synopsis

dcloud git commits compare-files repoId --base base --head head [flags]

Arguments

  • <repoId>Required

    string

    Also accepted as --repo-id. Constraints: uuid

Flags

  • --baseRequired

    string

    The ref the change is measured against, e.g. the target branch

    Constraints: 1-255 chars

  • --headRequired

    string

    The ref with the changes; the diff is what it adds since its merge base

    Constraints: 1-255 chars

  • --cursorOptional

    number

    `nextCursor` of the previous page; the first page when absent

    Constraints: integer, min 0

  • --limitOptional

    number

    Files per page, at most 1000; 500 when absent

    Constraints: integer, 1-1000

  • --ignore-whitespaceOptional

    enum

    `true` to count lines as if whitespace did not matter (`git diff -w`); false when absent

    One of: true, false

Example

dcloud git commits compare-files repoId --base example --head example

Generated from the API description, the same one the API checks requests against and the CLI is built from.