From ef49288db1aea71be7adbf545868016748e2ce50 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 31 Jul 2021 03:08:49 -0400 Subject: [PATCH] ncls: formatting --- src/ls/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ls/main.cpp b/src/ls/main.cpp index 2e376a20f..aabb14e8a 100644 --- a/src/ls/main.cpp +++ b/src/ls/main.cpp @@ -69,10 +69,11 @@ int handle_inode(std::filesystem::path& dir, const char* p, const struct stat* s return 0; } -// if |directories| is true, only print details of |p|, and return. otherwise, -// if |recursedirs| or |toplevel| is set, we will recurse, passing false as -// toplevel (but preserving |recursedirs|). -int handle_dir(int dirfd, std::filesystem::path& pdir, const char* p, const struct stat* st, const lsContext& ctx, bool toplevel){ +// if |ctx->directories| is true, only print details of |p|, and return. +// otherwise, if |ctx->recursedirs| or |toplevel| is set, we will recurse, +// passing false for toplevel (but preserving |ctx|). +int handle_dir(int dirfd, std::filesystem::path& pdir, const char* p, + const struct stat* st, const lsContext& ctx, bool toplevel){ if(ctx.directories){ return handle_inode(pdir, p, st, ctx); }