[darcs-users] how to handle moving code around

Julian Snitow jsnitow at gmail.com
Wed Mar 30 03:45:11 UTC 2005

On Tue, 29 Mar 2005 17:12:01 -0800, Sean Perry <shaleh at speakeasy.net> wrote:
> I have code in a file A. I would now like most of this code to end up in
> file B. Now clearly, I can do:
> open A in editor, grab code
> open B in editor, deposit code
> darcs add B
> darcs record
> But I would like a way for darcs to know I did the equivalent of move
> file without having moved a file.
> Ideas?
[I accidentally sent this off-list. Sorry, Sean.]

How about actually moving the file?
If you consider this as two discrete operations, it's simple.

$  darcs mv A B
$  darcs record
$  # edit B to get rid of the portions you don't want
$  darcs record



More information about the darcs-users mailing list