Keeping formatting information and using RCS Keywords

When two or more people working on the same file, We may use different editors or even different settings within same editor We can keep some formatting information within source files, which would be understood by editors like vim/emacs For example /* -*- mode:C++; c-basic-offset:2; indent-tabs-mode:nil -*- */ (For Emacs) /* vim: ts=4:sw=4:cindent */ (For Vim) We can add some more settings or change the above settings Using RCS KeyWords:
If we keep $Id:$ in source files, most of the SCMs puts filename with the full version info inside of it. For example  
// $Id: $ Or 
if we want to use the version information in our code static char fileVersion[] = “$Id:$

Here is the link about RCS Keywords


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s