From: Matthieu Moy Date: Thu, 21 Jun 2007 12:53:32 GMT Subject: Re: Basename matching during rename/copy detection Message-ID: In-Reply-To: <200706211344.47560.andyparkins@gmail.com> Andy Parkins writes: > On Thursday 2007 June 21, Johannes Schindelin wrote: > >> > would let people keep their copies. What I was objecting to was the >> > idea that any repository with duplicate files was "stupid". >> >> FWIW I find it stupid, too. > > Thanks very much. Okay, as I've been put in the position of defending this, > let me give you the use case that has cropped up for me to do this stupid > thing. Well, why look so far to find an example of people having identical files in their tree? $ cd git $ git-ls-files -z | xargs -0 md5sum | cut -f 1 -d ' ' | wc -l 973 $ git-ls-files -z | xargs -0 md5sum | cut -f 1 -d ' ' | sort | uniq | wc -l 964 $ -- Matthieu