[darcs-users] Force darcs to treat a file as binary? (or not)

Pekka Pessi ppessi at gmail.com
Wed Apr 2 22:33:57 UTC 2008


2008/3/24, Allan Lyons <allan at rahab.wycliffe.ca>:
> On Mon, Mar 24, 2008 at 08:24:40AM -0400, Jason Purdy wrote:
>  > There's a preference file in your repository itself called 'binaries',
>  > which contains a list of regular expressions to match file names.
>  >
>  > /path/to/repo/_darcs/prefs/binaries
>
>  In that case, can the reverse be done and force darcs to treat a
>  specific file as NOT binary when it matches one of those reg
>  expressions.  Assume also that there are other files that match the same
>  reg ex that ARE supposed to be treated as binary.

As far as I know, there is no easy way to do that.

However, you can create file with an another name, like, text.exe.not,
and then after recording the patch, use

darcs mv text.exe.not text.exe && darcs amend text.exe

-- 
Pekka.Pessi mail at nokia.com


More information about the darcs-users mailing list