summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2020-01-16 20:21:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-16 20:56:13 (GMT)
commit0cbb60574e741e8255ba457606c4c90898cfc755 (patch)
tree73a5138641bba1f5cabaab2eede8cd1b192eb7d7 /dir.c
parentad6f2157f951dc2ffeb7a01f090686f0bbb06f7a (diff)
downloadgit-0cbb60574e741e8255ba457606c4c90898cfc755.zip
git-0cbb60574e741e8255ba457606c4c90898cfc755.tar.gz
git-0cbb60574e741e8255ba457606c4c90898cfc755.tar.bz2
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>
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dir.c b/dir.c
index 8437030..b460211 100644
--- a/dir.c
+++ b/dir.c
@@ -2310,9 +2310,9 @@ static int treat_leading_path(struct dir_struct *dir,
* WARNING WARNING WARNING:
*
* Any updates to the traversal logic here may need corresponding
- * updates in treat_leading_path(). See the commit message for the
- * commit adding this warning as well as the commit preceding it
- * for details.
+ * updates in read_directory_recursive(). See 777b420347 (dir:
+ * synchronize treat_leading_path() and read_directory_recursive(),
+ * 2019-12-19) and its parent commit for details.
*/
struct strbuf sb = STRBUF_INIT;