On Wed, Sep 15, 2010 at 07:41:50PM -0400, Jay Soffian wrote: > On Wed, Sep 15, 2010 at 7:29 PM, Nguyen Thai Ngoc Duy <pclouds@xxxxxxxxx> wrote: > > I sense another use of negative pathspecs here.. > > Yeah, I'm really not sure I agree with the reasoning of b5227d8 > (ls-files: excludes should not impact tracked files, 2009-10-12). > > I thought about submitting a patch to revert b5227d8, but with an > additional option to guard the behavior > (--exclude-cached-files-too-pretty-please). > > But I guess I don't see the harm in allowing excludes to apply to > cached files when it is explicitly requested on the command-line. Here > I think ls-files is slightly different than the other areas of git > that don't apply excludes to cached files as it's about, well, listing > files, and it's clear (I think) what the user wants. It's not just the command line. It's also what's in .gitignore files. If you disable just half of that, then you get the awful behavior that some excludes apply to index files, and some don't. Yes, it's confusing that "-i" is not actually an inversion for index files. See http://article.gmane.org/gmane.comp.version-control.git/131719 It would help if I understood exactly what you're trying to accomplish. -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html