I would like to set up a bzr repository that does not require me to deal with the addition or subtraction of empty lines.
Is it possible to do this?
Are there any potential disadvantages? My code is in R and bash.
I would like to set up a bzr repository that does not require me to deal with the addition or subtraction of empty lines.
Is it possible to do this?
Are there any potential disadvantages? My code is in R and bash.
When comparing repositories or revisions using bzr diff, you can use diff-options to pass options through to the standard UNIX diff command.
I've been unable to find a way to handle whitespace changes (tab to spaces, or spaces to tabs) gracefully. I've also been unable to find a way to handle any sort of whitespace changes when performing a merge.
Maybe one of the following solutions can be implemented:
1) Write a plugin that provides a custom merge algorithm that ignores such differences, using a merge hook. Every installation that does merges will need the plugin that does this. I can provide more pointers on how to do this if you are interested.
2) Write a plugin that uses a content filter to strip redundant empty lines when committing. Not really what you want though.