This is a tool for merging files using specific language separators characters, instead of just '\n', to identify code conflicts.
- Break the code putting a new line before and after each separator;
- Add a marker (e.g. “$$$$$$$”) for these new lines;
- Call diff3 command for these new files pre processed;
- Remove the new lines added in step one from the merge result, using the marker added in step two;
Run the CSDiff tool for 3 Python files:
bash csdiff.sh -s ": ( ) ," left.py base.py right.py
also, see files test.sh and test_indentation.sh, the first one uses the csdiff_backup.sh and the other one uses the csdiff.sh (which uses csdiff_python.py)