Forum Discussion

user6546's avatar
user6546
New Member
6 days ago

Replicating GUI function with CLI

I have been using the GUI to push commits to our instance of CC online.

On the web, these contributions appear like this:

 

If I try to make the same submission using the CLI, i.e.

ccollab addgitdiffs --upload-comment "My commit message from git" 300 abcdec0123~ abcdec0123

... then it appears on the web like:

The CLI as two distinct differences:

  • The "Hash" is not populated, even though the CLI args provide this information; and
  • The CLI appends "Diff Generated By..." even though the help says --upload-comment "defaults to command line arguments" (suggesting it should be entirely replaceable if --upload-comment is provided).

 

Questions:

How can I make my CLI contributions match the GUI? Specifically:

  • How do I set the value appearing in the Hash column with the CLI; and
  • How can I stop the CLI appending the "Diff Generated By..." remark to the end of my messages?

1 Reply

  • When you 1) use the GUI client and perform "Add Git Diffs..." and specify two file revisions or 2) use the CLI to perform "ccollab addgitdiffs" and specify two file revisions, you will get a Review Materials entry with no commit hash.

    When you 1) use the GUI client and perform "Add Commits..." and specify a commit or 2) use the CLI to perform "ccollab addchangelist" and specify a commit, you will get a Review Materials entry with the commit hash you specified.