Search code examples
javaeclipsesvncommentssubversive

Eclipse: how to distinguish between public comments and private comments in my code?


I'm looking for a systematic way how to have in my eclipse projects' code, private comments (which I do not want other team members to see when they check out my code), as well as public comments (which I do want to share with others); a way that will allow me to only commit to svn the code with comments I want to make public?

I use eclipse subversive.


Solution

  • Create files with the same base name, but the extension .notes. Thus the class named Plover would be declared in Plover.hpp, defined in Plover.cpp and your private notes would be in Plover.notes.

    You can then tell SVN not to check in your notes file using a command like:

    svn propset svn:ignore "*.notes"