Applies to Collaborator 13.0, last modified on July 29, 2020

Description

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

Option

Required?

Description

--upload-comment <value>

No

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

<review>

Yes

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> ...]

No

Options which should be passed to the git diff command

Remarks

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.

Examples

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

ccollab addgitdiffs review master~8 master~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