From: Johannes Schindelin Date: Tue, 20 Jan 2009 10:07:45 GMT Subject: Re: [PATCH,v4] git-checkout(1): mention fate of extraneous files Message-ID: In-Reply-To: <7vy6x6odiw.fsf@gitster.siamese.dyndns.org> Hi, On Mon, 19 Jan 2009, Junio C Hamano wrote: > [...] the more I think about it, I do not think it is natural at all to > expect "checkout" to behave as if you did "rm -fr" everything and then > "tar xf" over the void. What other SCM implements branch switching that > way, and what workflow would such a behaviour help? > > We need to draw a line somewhere to avoid cluttering the documentation > too much, and I do not think this is something even a person with CVS > braindamage would get confused about, which is where I think is a > reasonable place to draw that line. IIRC both CVS and Subversion allow you to say "$SCM co" with an existing working directory, which is then updated (and untracked files are left alone, as "$SCM up" always did and should do). So no, not even people with CVS/SVN braindamage would get confused thusly. Ciao, Dscho