Is it possible to force SVN to ignore changes in case of a character?

We have a VB6 application in the SVN repository, and VB6 has the annoying habit of globally changing the case of characters of identical identifiers, thereby creating a lot of pseudoconflicts.

Is it possible to force SVN to ignore such changes?

We also have Java projects, so it should be a setting for each repository.

+3
source share
2 answers

You can use the SVN external demarcation tool to do differences and merges that can ignore spaces. For example, the diff command on Unix has the -ignore-case option to ignore case.

, , , VB, .

, , , VB6 ( VB6, ), .

+1

, . . Windows Unix, , SVN.

unix:

svn --diff-cmd "./idiff.sh" diff

idiff.sh:

#!/bin/sh

LEFT=${6}
RIGHT=${7}

diff -i $LEFT $RIGHT
+2

Source: https://habr.com/ru/post/1719011/


All Articles