That doesn't seem to work.
For example, if I add '*.c' to .gitignores in git.git, I can't seem to
get that command to display any .c files.
Run on its own, it displays lots of files, but no .c files. Run with
an argument (such as builtin-add.c), it displays nothing.
That also doesn't seem to do quite what I want, and probably in the
same way. I see git add returns non-zero error status if a file is
ignored, so I can do it with
excluded=()
for f in $(git ls-files)
do
git add $f || excluded=($excluded $f)
done
But that feels kind of clunky. I feel I'm missing something basic
about how git ls-files is intended to work, or something.
-
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