prep_exclude: remove the artificial PATH_MAX limit
commitaceb9429b37a4a36e91f9eeb60e7ba488f73604b
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 14 Jul 2014 09:50:22 +0000 (14 11:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jul 2014 22:24:34 +0000 (14 15:24 -0700)
tree16b0e9ab9bffa98114425a5bd1934d174fe5f694
parent709359c85cf366df68a1cabf9d68978c05c541c5
prep_exclude: remove the artificial PATH_MAX limit

This fixes a segfault in git-status with long paths on Windows,
where PATH_MAX is only 260.

This also fixes the problem of silently ignoring .gitignore if the
full path exceeds PATH_MAX. Now add_excludes_from_file() will report
if it gets ENAMETOOLONG.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c
dir.h