[darcs-devel] Darcs and git: plan of action

Ralph Corderoy ralph at inputplus.co.uk
Wed Apr 20 10:11:55 PDT 2005


Hi Ray,

> Give me a case where assuming it's a replace will do the wrong thing,
> for C code, where it's a variable or function name.

How about two patches.

    1.  s/foo/bar/ throughout file because foo() has been decided upon
    as the name of a new globally visible forthcoming function but was
    already in use as a static function.

    2.  Add definition of new foo().

Patch 1 mustn't be a `darcs replace' despite it changing every occurence
of the C token foo into bar.

Cheers,


Ralph.





More information about the darcs-devel mailing list