[Top][All Lists]

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

Re: [Gnu-arch-users] reverting changes to a file

From: Jan Hudec
Subject: Re: [Gnu-arch-users] reverting changes to a file
Date: Wed, 17 Sep 2003 09:44:42 +0200
User-agent: Mutt/1.5.4i

On Tue, Sep 16, 2003 at 21:01:03 -0400, Colin Walters wrote:
> On Tue, 2003-09-16 at 20:43, Dustin Sallings wrote:
> >     Is there a mechanism to undo changes to an individual file?  I only 
> > screwed up one file, but undo seems to want to undo the entire tree.
> The hack I use is:
> tla file-diffs foo.c | patch -p1 -R

cp $(tla file-find foo.c) foo.c

A little faster (no diff + patch). Except you can use the first one to
save the diff as:

tla file-diffs foo.c | tee foo.c.~undo~ | patch -p1 -R

                                                 Jan 'Bulb' Hudec 

reply via email to

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