Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How do I do a "git diff" with scm?

 With the command line tools (scm/lscm) how do I do a "git diff" to show me what changes I've made but not committed yet?

0 votes

Comments

Committed changes?  RTC has the concept of check-in which will create a "change set" but that change set is not visible to other users yet.  They are stored on the server in your repository workspace.  When you deliver the Change set, they are now visible to other users.  Please clarify where you want to accomplish your diff?  Before you "check in"?  Before you deliver, but after you have checked-in? 

Sorry, I used the wrong term there.  I mean "changes I've made but not yet put into a changeset yet." 



One answer

Permanent link
The command to use is 'lscm diff'. For example: lscm diff file "path of the file in the sandbox". The diff command accepts only one file at a time. Refer to https://jazz.net/library/article/1031 Example 2 that shows how to diff recursively using PERL.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 1,202
× 158
× 113
× 97
× 8

Question asked: Nov 11 '13, 12:22 p.m.

Question was seen: 7,682 times

Last updated: Dec 16 '13, 4:19 p.m.

Confirmation Cancel Confirm