|
From: Lark <lar...@ya...> - 2001-03-13 04:19:32
|
At 6:44 PM -0500 3/12/01, Charles Lechasseur wrote:
>it also answered a question i had about whether the files' headers were
>automatically updated by CVS when you committed something.
yes, they are
> did you have to
>add a special comment at the beginning of each file to achieve this, or are
>all files automagically logged this way?
cvs expands tags that look like $keyword$ (they are in the header)
> (i.e. if i add a file to the
>project, do i have to use a header template at the very beginning of the
>file? if so, how exactly should i set up that header to make sure logging
>works?)
use the header provided when you first create a file:
/*
----------------------------------------------------------------------------
$RCSfile: HEADER,v $
Copyright (C) 2000-2001, The Scribia Development Team
This program is free software; you can redistribute it and/or modify it
under the terms of the "Artistic License" which comes with this Kit.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the Artistic License for more
details.
----------------------------------------------------------------------------
$Revision: 1.3 $
$Author: lark $
$Date: 2001/02/04 20:24:41 $
$State: Exp $
----------------------------------------------------------------------------
$Log: HEADER,v $
Revision 1.3 2001/02/04 20:24:41 lark
New copyright.
----------------------------------------------------------------------------
*/
what cvs oes is replace the $Log...$ line with your commit comment
every time a commit happens.
when you first start a file, remove the log that is already there,
i.e. in the example above, you'd remove these two lines after pasting
th header in:
> Revision 1.3 2001/02/04 20:24:41 lark
> New copyright.
the other info will automatically be corrected/updated on commit.
--
Lark <lar...@ya...>
|