kdiff3: Usage question

Kevin Connor Arpe kevinarpe at gmail.com
Mon Nov 29 16:34:17 GMT 2010


Hello,

I am trying to understand how to correctly use a feature of kdiff3.
I hope this is the correct forum to ask.

I am working on Kubuntu Linux (KDE 3.5.10) with KDiff3 0.9.92

"Line-matching preprocessor command" does not behave as I expect.
I read all the documentation.  I am also fluent in sed and perl.

I double/triple checked my command, but still the output does not comprehend.
I am sure your program is running correctly... the real problem: I do
not understand the feature.

All I want to do is ignore the first six characters during a three-way merge.
My command: sed 's/......//'
This should work.  Also: perl -p -e 's/......//'

The commands work OK, but the GUI does not make sense.

I am doing a three way merge: base, trunk, branch

Sample files:

base
====
000000abc
000000def
000000ghi
000000jkl
000000mno

trunk
====
000001abc
000000new1
000000new2
000000new3
000001def
000001ghi
000001jkl
000001mno

branch
====
000002abc
000002def
000002ghi
000002jkl
000003yoyo1
000003yoyo2
000002mno

Sample command:
$ kdiff3 --cs "LineMatchingPreProcessorCmd=sed 's/......//'" --cs
"PreProcessorCmd=" --cs "WindowStateMaximised=0" --merge --output
./merged ./base ./trunk ./branch

Why does every line appear to change?
This doesn't make sense... seems like first six chars should be ignored.

Thanks,
Kevin
Hongkong
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list