3 ms·
I don't like the idea of excluding all comments from the code. However excluding useless or local comments from a repository can be legitimate. Two potential s
by rames 15y ago
I don't like the idea of excluding all comments from the code. However excluding useless or local comments from a repository can be legitimate.
Two potential solutions:
1) Use a regexp to match your comments and trim your code before committing.
That shouldn't be too hard, and is pretty efficient since you only need to care about it before submitting your code.
If there are existing comments that should stay in the code, use a specific markup for your comments.
2) Another idea could be to maintain a stgit patch integrating all the comments.
This requires a bit of process though.