summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-05-28 13:03:00 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-05-28 13:03:00 +0900
commit329d63e7be044524d29dcb43e8ed52bc1f3b9241 (patch)
tree141d0ee7461cc3ac3be7c93dcdb7199714e71120
parentMerge branch 'ab/pack-linkage-fix' (diff)
parentdir: introduce readdir_skip_dot_and_dotdot() helper (diff)
downloadtgif-329d63e7be044524d29dcb43e8ed52bc1f3b9241.tar.xz
Merge branch 'en/dir-traversal'
Fix-up to a topic that is already in 'master'. * en/dir-traversal: dir: introduce readdir_skip_dot_and_dotdot() helper dir: update stale description of treat_directory() Revert "dir: update stale description of treat_directory()" Revert "dir: introduce readdir_skip_dot_and_dotdot() helper"
-rw-r--r--dir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index b0876cd6d3..ebe5ec046e 100644
--- a/dir.c
+++ b/dir.c
@@ -59,8 +59,7 @@ void dir_init(struct dir_struct *dir)
memset(dir, 0, sizeof(*dir));
}
-struct dirent *
-readdir_skip_dot_and_dotdot(DIR *dirp)
+struct dirent *readdir_skip_dot_and_dotdot(DIR *dirp)
{
struct dirent *e;