Re: Use of the -f flag on checkout
- From
Matthias Urlichs <smurf@smurf.noris.de>
- Date
- Sep 29, 2005, 07:09 UTC
- Message-ID
- <pan.2005.09.29.07.09.51.516956@smurf.noris.de>
- In-Reply-To
- <200509290754.30017.alan@chandlerfamily.org.uk>
Hi, Alan Chandler wrote:
> What is the risk in not using it (ie what are the cases when you should > use it)?
The risk of using it is that you kill your local changes, even if you want to keep them. They're *gone*.
The risk of not using it is that you check local changes into a branch where they don't belong.
=> IMHO, "checkout -f" should be avoided in scripts. If you want to be safe, check that you don't have local changes or additional files *before* doing the work.
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
To me, home is not rooms and places. It is the people I want to be with.
-- FJ van Wingerde