[darcs-users] how do i tell darcs that i changed my mind

Stefan Rank e9725431 at student.tuwien.ac.at
Mon Dec 6 15:30:50 UTC 2004


hi

a short user story (the implied question is, how do others go about that?):

suppose i add a file for darcs like this:

   >darcs add a.txt

now i have

   >darcs whatsnew
   {
   addfile ./a.txt
   hunk ./a.txt 1
   +test
   }

but just a moment later i thought about it, and have decided that it is
a rather silly file, that i do not want to be managed by darcs (but not
deleted either).
my two options now are (afaik) revert and remove.

- 'revert' does not seem to have an option like --dontdelete

- 'remove a.txt' results in the following

   >darcs whatsnew
   {
   addfile ./a.txt
   rmfile ./a.txt
   }

is there another way? or can darcs be smart about detecting this kind of
situation for pending changes (explicit add is canceled out by explicit
remove)?

thanks for darcs,
stefan rank





More information about the darcs-users mailing list