ccollab addgitdiffs

Applies to Collaborator 14.5, last modified on June 13, 2024


The ccollab addgitdiffs command uploads differences between arbitrary versions of files in Git. The differences are generated using the native git diff command of Git.

Command Line Syntax

ccollab [global-options] addgitdiffs [--upload-comment <value>] <review> [<git-diff-arg> [<git-diff-arg> ...]]

Command Options




--upload-comment <value>


Comment used to upload files (defaults to command-line arguments)



Identifier of the desired review (an integer number), or a new, ask, or last keyword. Where keywords define the following behaviour:

  • new - the command will create a new review,
  • ask - the command will pause execution and prompt for the identifier of the desired review,
  • last - the command will use the last review that was created on the current machine via Command-Line Client (that is, it does not know about reviews created elsewhere).

<git-diff-arg> [<git-diff-arg> ...]


Options which should be passed to the git diff command


Do not use diff arguments that affect the diff output such as -U unified. The Collaborator command-line client will automatically select an output format that ensures you will get all the data you need on the server.


To upload all changes between the revision 8 revisions ago and the revision 4 revisions ago:

ccollab addgitdiffs review main~8 main~4

To upload all changes in your local working directory:

ccollab addgitdiffs review

See Also

Git Integration
ccollab addchangelist (for Git)
ccollab addchanges (for Git)
ccollab gitaddbranch

Highlight search results