Re: git ls-files -o under .git/ prints all repository files
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Jan 19, 2007, 07:57 UTC
- Message-ID
- <81b0412b0701182357l3a6d44fel58da50c7895fb6b4@mail.gmail.com>
- In-Reply-To
- <45B07875.9030506@fs.ei.tum.de>
On 1/19/07, Simon 'corecode' Schubert <corecode@fs.ei.tum.de> wrote:
Show 5 quoted lines
> > > > 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?
Show 6 quoted lines
> 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.