list-objects.c: rename "traverse_trees_and_blobs" to "traverse_non_commits"

Function `traverse_trees_and_blobs` not only works on trees and blobs, but also on tags, the function name is somewhat misleading. This commit rename it to `traverse_non_commits`. Signed-off-by: Teng Long <dyroneteng@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Teng Long committed Aug 12, 2021 at 16:59 UTC b3e36df0d4daa7ede26e0c7252564f43662778d6
1 file changed +4 -4
list-objects.c
+4 -4
@@ -337,8 +337,8 @@ static void add_pending_tree(struct rev_info *revs, struct tree *tree)
337 add_pending_object(revs, &tree->object, "");
338 }
339
340 -static void traverse_trees_and_blobs(struct traversal_context *ctx,
341 - struct strbuf *base)
340 +static void traverse_non_commits(struct traversal_context *ctx,
341 + struct strbuf *base)
342 {
343 int i;
344
@@ -410,9 +410,9 @@ static void do_traverse(struct traversal_context *ctx)
410 * needs a reallocation for each commit. Can we pass the
411 * tree directory without allocation churn?
412 */
413 - traverse_trees_and_blobs(ctx, &csp);
413 + traverse_non_commits(ctx, &csp);
414 }
415 - traverse_trees_and_blobs(ctx, &csp);
415 + traverse_non_commits(ctx, &csp);
416 strbuf_release(&csp);
417 }
418