This section of the archives stores flipcode's complete Developer Toolbox collection, featuring a variety of mini-articles and source code contributions from our readers.


  Ident String In CVS
  Submitted by

For those of you using CVS for version control, you can insert the following string in any (text-)file:

$Id: $

This string can go anywhere, for instance in a comment-block. When you commit a file, CVS searches for this string and inserts some useful information in the following format:

$Id: SomeFile.cpp,v 1.20 2002/08/06 18:02:11 jeroen Exp $

What this gives you is a quick overview of which file you're looking at, what version it is, who did the latest commit and when. This is very useful in an environment where multiple versions of a file are floating around, which is very common when you're using CVS. Developer X may have checked out his sources on monday-morning, while Y committed his critical bug-fix one hour later. When X complains about something not working, a quick check of the ident-string will reveal he/she does not have the latest version.


The zip file viewer built into the Developer Toolbox made use of the zlib library, as well as the zlibdll source additions.


Copyright 1999-2008 (C) FLIPCODE.COM and/or the original content author(s). All rights reserved.
Please read our Terms, Conditions, and Privacy information.