From: Clemens Buchacher Date: Thu, 10 Feb 2011 21:49:01 GMT Subject: Re: [PATCH] Demonstrate breakage: checkout overwrites untracked symlink with directory Message-ID: <20110210214901.GA25437@localhost> In-Reply-To: <7vpqr0n51f.fsf@alter.siamese.dyndns.org> On Wed, Feb 09, 2011 at 03:48:12PM -0800, Junio C Hamano wrote: > > Perhaps can-clobber-to-checkout would be a good candidate. How about leading_path_in_use() instead? Whether files in the path can be clobbered or not is checked in a separate step, which is currently called ok_to_remove(). Clemens