Skip to content

Commit 0cbb605

Browse files
peffgitster
authored andcommitted
dir: point treat_leading_path() warning to the right place
Commit 777b420 (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 <[email protected]> Reviewed-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ad6f215 commit 0cbb605

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dir.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,9 +2310,9 @@ static int treat_leading_path(struct dir_struct *dir,
23102310
* WARNING WARNING WARNING:
23112311
*
23122312
* Any updates to the traversal logic here may need corresponding
2313-
* updates in treat_leading_path(). See the commit message for the
2314-
* commit adding this warning as well as the commit preceding it
2315-
* for details.
2313+
* updates in read_directory_recursive(). See 777b420347 (dir:
2314+
* synchronize treat_leading_path() and read_directory_recursive(),
2315+
* 2019-12-19) and its parent commit for details.
23162316
*/
23172317

23182318
struct strbuf sb = STRBUF_INIT;

0 commit comments

Comments
 (0)