Some brief notes regarding the code reindent.
Pull request: https://github.com/bitlbee/bitlbee/pull/14
Why
It's not my fault don't look at me like that.
How
The commands used were the following:
find . -name '*.[hc]' > filelist uncrustify -c uncrustify.cfg --replace --no-backup -F filelist
uncrustify is http://uncrustify.sourceforge.net/
The configuration file (uncrustify.cfg) was added to the doc/ directory of the repository one commit before the reindent itself. It only includes the differences with the default config of uncrustify 0.60.
Adapting out of tree patches
To minimize the pain when adapting your patches to the new code style, follow these instructions
Given indent as the indent commit and indent^ as the previous one (the one which adds this file)
Apply patches against indent^, fix merge conflicts normally as needed, if any.
- Run the uncrustify command from above.
Stage all the changes: git add -u
Create a temporary commit: git commit -m "reindent temp commit"
Rebase with -X ours against the indent commit: git rebase indent -X ours
- Review resulting diff
Squash or make a new patch with git diff indent