From: Alex Riesen Date: Fri, 19 Jan 2007 07:57:58 GMT Subject: Re: git ls-files -o under .git/ prints all repository files Message-ID: <81b0412b0701182357l3a6d44fel58da50c7895fb6b4@mail.gmail.com> In-Reply-To: <45B07875.9030506@fs.ei.tum.de> On 1/19/07, Simon 'corecode' Schubert wrote: > > > > Amusing problems deserve an equally amusing solution. > > I guess you are not serious. I wonder, why does git-ls-files ever > list files under .git? I'd just say: fail if you want to list $GIT_DIR. Not list. Clean. What's wrong with listing them? > Maybe other tools should do so as well. > > % cd .hg && hg status -A . > abort: path contains illegal component: .hg > > I think this is a sensible thing to do. No, it isn't. It is not unlikely to have repo in repo (and some people already have them). Mercurial is wrong here.