Explorar o código

(collect_and_sort_names): Update dir_contents of the first non-fake name entry when in listed incremental mode.

Sergey Poznyakoff %!s(int64=19) %!d(string=hai) anos
pai
achega
67877f7de2
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      src/names.c

+ 8 - 0
src/names.c

@@ -787,6 +787,14 @@ collect_and_sort_names (void)
 
   for (name = namelist; name; name = name->next)
     name->found_count = 0;
+
+  if (listed_incremental_option)
+    {
+      for (name = namelist; name && name->fake; name++)
+	;
+      if (name)
+	name->dir_contents = append_incremental_renames (name->dir_contents);
+    }
 }
 
 /* This is like name_match, except that