Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does my –diff-cmd complain about -u? I tried to override it with –extensions, but its not working.

0
10 Posted

Why does my –diff-cmd complain about -u? I tried to override it with –extensions, but its not working.

0

When using an external diff command, Subversion builds a fairly complicated command line. First is the specified –diff-cmd. Next comes the specified –extensions (although empty –extensions are ignored), or ‘-u’ if –extensions is unspecified (or specified as ”). Third and fourth, Subversion passes a ‘-L’ and the first file’s label (e.g. “project_issues.html (revision 11209)”). Fifth and sixth are another ‘-L’ and the second label. Seventh and eighth are the first and second file names (e.g. “.svn/text-base/project_issues.html.svn-base” and “.svn/tmp/project_issues.html.tmp”). If your preferred diff command does not support these arguments, you may need to create a small wrapper script to discard arguments and just use the last couple file paths. Warning: Beware that Subversion does not expect the external diff program to change the files it receives, and doing so may scramble the working copy. For further information, see issue #2044.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.