gnu-arch-users
[Top][All Lists]
Advanced

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

Re: [Gnu-arch-users] "tla commit" generates a patch-set even if there ar


From: Stefan Monnier
Subject: Re: [Gnu-arch-users] "tla commit" generates a patch-set even if there are no changes
Date: 14 May 2004 20:14:07 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>> For scripts, you'd want to use
>> `tla changes -o foo', then check whether `foo' is empty, and if not
>> do `tla commit foo'.  Or something along those lines.
> For scripts, you should use `tla changes -q', and check the exit status.

But that means in the common case, you do `tla changes -q' and then
`tla commit': overall you do 2 full traversal of your tree, thus you just
slowed down this operation by a factor of 2.
I already find it to be les than speed of light, so I'd rather avoid
an aditional factor of 2 just to detect the rare case where there
were no changes made.


        Stefan




reply via email to

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