how to Define Rulesets through command line?

Support for our DiffMerge utility.

Moderator: SourceGear

Post Reply
skdrs
Posts: 8
Joined: Thu Sep 14, 2017 1:54 pm

how to Define Rulesets through command line?

Post by skdrs » Thu Sep 14, 2017 2:04 pm

I am using sgdm diffmerge /d=C:\Users\Admin1\Desktop\Test3.txt /u C:\Users\Admin1\Desktop\Test1.txt C:\Users\Admin1\Desktop\Test2.txt . But I want to specify Rulesets where I don't want any data from the left side of the comparison. I only need information from the right side. How can I specify that ruleset in Command line?

Thanks in advance!
Sai

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: how to Define Rulesets through command line?

Post by Beth » Thu Sep 14, 2017 2:16 pm

We don't currently have the option in the command line. You may want to parse the results to remove items from one side. I can enter a feature request in the meantime.

If I see a better way to do this, I'll post again.
Beth Kieler
SourceGear Technical Support

skdrs
Posts: 8
Joined: Thu Sep 14, 2017 1:54 pm

Re: how to Define Rulesets through command line?

Post by skdrs » Thu Sep 14, 2017 2:56 pm

Thanks for the response, how can I parse the result output?

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: how to Define Rulesets through command line?

Post by Beth » Thu Sep 14, 2017 3:11 pm

I was assuming you were outputting to a file. Is that correct? If not, then send it to a file, and you can then work with the file contents.
Beth Kieler
SourceGear Technical Support

skdrs
Posts: 8
Joined: Thu Sep 14, 2017 1:54 pm

Re: how to Define Rulesets through command line?

Post by skdrs » Fri Sep 15, 2017 7:24 am

Is there any way that I can output a file with the results from one side?
Can this be achieved from Command line? if not whats the method to parse after creating the file?
Thanks !

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: how to Define Rulesets through command line?

Post by Beth » Fri Sep 15, 2017 1:49 pm

I think I may have misunderstood the question. Are you just wanting to view the differences, or are you wanting to apply differences from one file to another?

It's not possible to output just one side via command line or by any method.

When I was suggesting you output the results to a file, that file would include information on the Show Differences, and not actually merge them or apply one side or the other.

What are you trying to achieve by only showing one side?
Beth Kieler
SourceGear Technical Support

Post Reply