Hi Christian, Christian Ohm wrote:
> As the subject says, the exclude options to ls-files seem broken. For example, > in a repo with PNG files, "git ls-files" obviously lists those, but "git > ls-files -x '*.png'" does as well. --exclude also doesn't help, putting the > pattern into a file and using -X also fails. That is by design. Everywhere else in git, files excluded by .gitignore but in the index are not ignored, and so with git ls-files, too. This was broken for a while, impacting other commands; see <http://thread.gmane.org/gmane.comp.version-control.git/129889>, for example. Hackish workaround: use '-i', which (since v1.6.5.3) does not apply this logic, with --exclude-from=file, file as follows: !*.png * The logic being "I do not want to track anything but image files; now please let me know what seems to be tracked by mistake." Does that take care of your need? What do you use this command to do? Yours, Jonathan A bystander, who notices the documentation bug here, but hopes there is something else, too -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org