bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: patch: atomic patch


From: Bob Proulx
Subject: Re: patch: atomic patch
Date: Sun, 11 Dec 2005 14:41:30 -0700
User-agent: Mutt/1.5.9i

address@hidden wrote:
> I need to be able to patch a tree of files atomically.
> I mean, either the patch is applied without any reject or is not applied
> at all.
> 
> (I think I've seen this method of operation of patch in some revision
> control systems like tla.)

I don't really have a good answer but I think if I were going to do
this myself I would use the patch --dry-run option and then check if
anything would be rejected.  If yes then don't patch.  If no then go
ahead and run patch for real.

Just a thought...  And I admit to not having tried the method.

Bob




reply via email to

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