ls-files: allow relative pathspec
commitefad1a5615e80637dcb38c8eaa1e35c03b24169f
authorClemens Buchacher <drizzd@aon.at>
Thu, 3 Jun 2010 13:39:18 +0000 (3 15:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 5 Jun 2010 16:14:31 +0000 (5 09:14 -0700)
tree5c25b294cd71757abb74733596b30049e1c0045a
parentb167cffb6b38a092e8f9e0e396c1931ee1dc8b7d
ls-files: allow relative pathspec

git ls-files used to error out if given paths which point outside the current
working directory, such as '../'. We now allow such paths and the output is
analogous to git grep -l.

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-files.c
t/t7010-setup.sh