Status: Up-to-date と表示されたファイルは最新です。
nishitmp@langue[153]% cvs status cvs status: Examining . =================================================================== File: Makefile Status: Up-to-date Working revision: 1.1.1.1 Tue Dec 10 09:07:10 1996 Repository revision: 1.1.1.1 /hp1/speech/CVS/test-cvs/Makefile,v Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) =================================================================== File: file1.c Status: Up-to-date Working revision: 1.2 Tue Dec 10 09:26:27 1996 Repository revision: 1.2 /hp1/speech/CVS/test-cvs/file1.c,v Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) =================================================================== File: file1.h Status: Up-to-date Working revision: 1.1.1.1 Tue Dec 10 09:07:10 1996 Repository revision: 1.1.1.1 /hp1/speech/CVS/test-cvs/file1.h,v Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) ===================================================================
void func() { static int i = 0; printf( "i = %d\n", i ); /* by nishi */ if ( i > 10 ) { printf("too much!!\n"); } }
=================================================================== File: file1.c Status: Locally Modified Working revision: 1.2 Tue Dec 10 09:26:27 1996 Repository revision: 1.2 /hp1/speech/CVS/test-cvs/file1.c,v Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) ===================================================================Locally Modified は、登録されているバージョンから自分が改変したことを 表しています。
サーバーに変更を登録する前に、いちど実行して変更点を確かめる とよいでしょう。
エディタが起動されてコメント入力待ちになるので、
file1.c の func() 関数に "too much!!" 表示を追加した。とコメントを書いておきます。
このように、コメントはなるべく具体的に書くことが 望ましいでしょう。
nishi@sono[222]% cvs commit cvs commit: Examining . cvs commit: Committing . Checking in file1.c; /hp1/speech/CVS/test-cvs/file1.c,v <-- file1.c new revision: 1.3; previous revision: 1.2 done
=================================================================== File: file1.c Status: Up-to-date Working revision: 1.3 Tue Dec 10 10:00:35 1996 Repository revision: 1.3 /hp1/speech/CVS/test-cvs/file1.c,v Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) ===================================================================バージョン番号が上がり、自分の改変がみんなに共有されるように なりました。