Re: git ls-files -o under .git/ prints all repository files

From: Alex Riesen <raa.lkml@gmail.com>
Date: 2007-01-19 18:57:58
On 1/19/07, Simon 'corecode' Schubert <corecode@fs.ei.tum.de> 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.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Jan 19 18:58:44 2007

This archive was generated by hypermail 2.1.8 : 2007-01-19 19:00:33 EST