docs(parity): correct implied-dir walk comment

This commit is contained in:
2026-09-16 23:26:22 +02:00
parent 695b5c8c25
commit c7ac039523
+2 -2
View File
@@ -294,8 +294,8 @@ static bool append_implied_dir_times(const Config* config, ArrayList* dir_entrie
while (flen > 1 && fs[flen - 1] == '/') while (flen > 1 && fs[flen - 1] == '/')
fs[--flen] = '\0'; fs[--flen] = '\0';
bool ok = true; bool ok = true;
/* Walk the source path upwards one component at a time; the previous /* Walk the source path upwards one component at a time (fs is truncated in
iteration's truncation is restored so every ancestor is stat'ed in full. */ place, so each step targets the next implied ancestor). */
for (int depth = ncomp - 2; depth >= 0 && ok; depth--) { for (int depth = ncomp - 2; depth >= 0 && ok; depth--) {
char* slash = strrchr(fs, '/'); char* slash = strrchr(fs, '/');
if (!slash || slash == fs) if (!slash || slash == fs)