diff options
author | Jeff King <peff@peff.net> | 2012-08-21 02:26:07 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-08-21 14:46:47 -0700 |
commit | 6966073102170171da4c25a4038bbd143fa6a75b (patch) | |
tree | f68b9b41c6d15cbccf8da69bd703e4272e607aae /attr.c | |
parent | ba8bd8300a544959159f6bd3a7e03ac54f85ea3a (diff) | |
download | git-6966073102170171da4c25a4038bbd143fa6a75b.tar.gz |
gitignore: report access errors of exclude files
When we try to access gitignore files, we check for their
existence with a call to "access". We silently ignore
missing files. However, if a file is not readable, this may
be a configuration error; let's warn the user.
For $GIT_DIR/info/excludes or core.excludesfile, we can just
use access_or_warn. However, for per-directory files we
actually try to open them, so we must add a custom warning.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'attr.c')
0 files changed, 0 insertions, 0 deletions