Skip to content

Commit b3e36df

Browse files
dyronegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5d213e4 commit b3e36df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

list-objects.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ static void add_pending_tree(struct rev_info *revs, struct tree *tree)
337337
add_pending_object(revs, &tree->object, "");
338338
}
339339

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)
342342
{
343343
int i;
344344

@@ -410,9 +410,9 @@ static void do_traverse(struct traversal_context *ctx)
410410
* needs a reallocation for each commit. Can we pass the
411411
* tree directory without allocation churn?
412412
*/
413-
traverse_trees_and_blobs(ctx, &csp);
413+
traverse_non_commits(ctx, &csp);
414414
}
415-
traverse_trees_and_blobs(ctx, &csp);
415+
traverse_non_commits(ctx, &csp);
416416
strbuf_release(&csp);
417417
}
418418

0 commit comments

Comments
 (0)