I’ve got a question that most likely doesn’t have a unique and clear answer.
In the team we are using the SVN, many of the people are using the git-svn (treating it as a fancy SVN client).
We’re storing some project related publications, reports, documents in the repository under let’s say trunk/Documents/*. Each of the users creates his own notes, annotations, etc. related to a given document – let’s say trunk/Documents/doc1.txt. Thus in the end we’ve got N users having doc1.txt.metadata.
What are your recommendations for storing this metadata? Branches for each user metadata?
As the files are going to differ by user, the cleanest way I can think of is keeping text files like
doc1.txt.metadata.username. Keeping separate branches per user metafile sounds complicated to me, and hard to work with in everyday use.There would be be the idea of automating this using a pre- and/or post-commit hook, but it is discouraged in the SVN book:
The simplest thing might be to establish
doc1.txt.metadata.usernameas a rule, and to write a pre-commit script that rejects any commits of.metadatafiles without the current user name as the extension.