[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: commit/update filters (unsupported -t/-f wrappers)

From: Larry Jones
Subject: Re: commit/update filters (unsupported -t/-f wrappers)
Date: Thu, 31 Jan 2002 15:15:59 -0500 (EST)

Malte Starostik writes:
> In our project there are quite a few binary files that are needed in their 
> binary form but can easily converted to text by a small program. So, I'd like 
> to keep them in CVS in a text form to enable diffing, merging etc. but have a 
> checkout/update deliver the binary version and a commit accept the binary 
> form. So basically, when committing such a file, it should be converted from 
> binary to text by a custom filter program and on update/checkout the 
> conversion be reverted.

I'd suggest turning your head around and thinking of the text form as
the actual source file that's checked out and committed.  Have your
build process turn the text form into the binary form as required for
running (just like it turns program source files into an executable),
and never check it in (just like you don't check in executables).

-Larry Jones

It seems like once people grow up, they have no idea what's cool. -- Calvin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]