< Day Day Up > |
18.16.1 ProblemCVS is great with plain ASCII text files, but you are running into problems with binary files, like binary executables, MS Word files, image files, and such. How can you store binary files in the CVS repository without CVS doing strange things to them and making them not work? 18.16.2 SolutionUse the -kb flags with the add command, like this: $ cvs update binaryfile $ cvs add -kb binaryfile $ cvs commit -m 'C proggie for timing tea' binaryfile You should also check out binary files with the -kb flags. If you are working with binary files a lot, you can make this the default in your ~/.cvsrc. 18.16.3 DiscussionMaking -kb the default means you will have to use cvs add -kkv when adding non-binary files. If you forget to use the -kkv flags when adding a non-binary file, run the following command: $ cvs admin -kkv textfile to modify the file for future commits and updates. CVS makes a number of changes to text files that do no good to binary files:
18.16.4 See Also
|
< Day Day Up > |