Jump to content
Richard McKenzie

Command Line to get file contents for a specific change set

Recommended Posts

Greetings, Amazing People of Plastic!

I'm currently on a mission to seek the contents of a file, given its change set number, and dump to the stdout. I've come as far as "cm cat" being my weapon of choice, however I've run into difficulty while using it. I'd prefer the solution to be workspace agnostic (which I believe "cm cat" is).

If you can assist, it would be greatly appreciated!

Kind regards,

Richard

 

Share this post


Link to post
Share on other sites
Quote

Greetings, Amazing People of Plastic!

giphy.gif

 

Quote

 

I'm currently on a mission to seek the contents of a file, given its change set number, and dump to the stdout. I've come as far as "cm cat" being my weapon of choice, however I've run into difficulty while using it. I'd prefer the solution to be workspace agnostic (which I believe "cm cat" is).

If you can assist, it would be greatly appreciated!

 

Try this!

cm cat serverpath:/Assets/_Complete-Game.meta#cs:2@UG-MK1@localhost:8087 --file=_Complete-Game.meta

I do recommend you to use "--file" instead of dumping the stdout, you might have issues with the file encoding and strange symbols the bash can't handle and the --file parameter masters it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...