warn_on_inaccessible(): a helper to warn on inaccessible paths
authorJunio C Hamano <gitster@pobox.com>
Tue, 21 Aug 2012 21:52:07 +0000 (14:52 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Aug 2012 21:52:07 +0000 (14:52 -0700)
The previous series introduced warnings to multiple places, but it
could become tiring to see the warning on the same path over and
over again during a single run of Git. Making just one function
responsible for issuing this warning, we could later choose to keep
track of which paths we issued a warning (it would involve a hash
table of paths after running them through real_path() or something)
in order to reduce noise.

Right now we do not know if the noise reduction is necessary, but it
still would be a good code reduction/sharing anyway.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found