[Issue 242] New - cvs diff can't handle diff options

[email protected] 15 Mar 2005 13:37:08 -0000
Newsgroups gmane.comp.version-control.cvs.issuezilla
Message-ID <[email protected]>
https://ccvs.cvshome.org/issues/show_bug.cgi?id=242
                 Issue #|242
                 Summary|cvs diff can't handle diff options
               Component|ccvs
                 Version|current stable
                Platform|All
                     URL|https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=6
                        |4474
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|diff/rdiff
             Assigned to|issues@ccvs
             Reported by|stransky






------- Additional comments from [email protected] Tue Mar 15 05:37:08 -0800 2005 -------
cvs diff can't handle diff options, if uses spaces.

How to reproduce:
-----------------

cvs diff -tbBwi --old-group-format='%df%(f=l?:,%dl)d%dE
%<' \
 --new-group-format='%dea%dF%(F=L?:,%dL)
%>' \
 --changed-group-format='%df%(f=l?:,%dl)c%dF%(F=L?:,%dL)
%<---
%>' \
 --old-line-format="'< %L'" \
 --new-line-format="'> %L'" \
 --unchanged-line-format="'  %L'" \
 file_to_compare

For example, command line parser breaks line --old-line-format='< %L'
to "--old-line-format='<"  and  "%L'"

I joined a patch, let me please know if you want to use it.