]> git.ipfire.org Git - thirdparty/git.git/commit
dir: point treat_leading_path() warning to the right place
authorJeff King <peff@peff.net>
Thu, 16 Jan 2020 20:21:56 +0000 (20:21 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Jan 2020 20:56:13 +0000 (12:56 -0800)
commit0cbb60574e741e8255ba457606c4c90898cfc755
tree73a5138641bba1f5cabaab2eede8cd1b192eb7d7
parentad6f2157f951dc2ffeb7a01f090686f0bbb06f7a
dir: point treat_leading_path() warning to the right place

Commit 777b420347 (dir: synchronize treat_leading_path() and
read_directory_recursive(), 2019-12-19) tried to add two warning
comments in those functions, pointing at each other. But the one in
treat_leading_path() just points at itself.

Let's fix that. Since the comment also redirects the reader for more
details to "the commit that added this warning", and since we're now
modifying the warning (creating a new commit without those details),
let's mention the actual commit id.

Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c