Code

ls-files: honour per-directory ignore file from higher directories.
authorJunio C Hamano <junkio@cox.net>
Thu, 9 Feb 2006 08:08:31 +0000 (00:08 -0800)
committerJunio C Hamano <junkio@cox.net>
Thu, 9 Feb 2006 08:08:31 +0000 (00:08 -0800)
commit701ca744e386c2429ca44072ea987bbb4bdac7ce
tree79a2cff6dc33fd5a2208990c97acf1c475b74cc5
parentd19e06fa8f86b611c10115903ef7e50d5de112f0
ls-files: honour per-directory ignore file from higher directories.

When git-ls-files -o --exclude-per-directory=.gitignore is run
from a subdirectory, it did not read from .gitignore from its
parent directory.  Reading from them makes output from these two
commands consistent:

    $ git ls-files -o --exclude-per-directory=.gitignore Documentation
    $ cd Documentation &&
      git ls-files -o --exclude-per-directory=.gitignore

Signed-off-by: Junio C Hamano <junkio@cox.net>
ls-files.c