Skip to content

Commit f9b54e2

Browse files
peffgitster
authored andcommitted
fast-export: rename handle_object function
The handle_object function is rather vaguely named; it only operates on blobs, and its purpose is to export the blob to the output stream. Let's call it "export_blob" to make it more clear what it does. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 47e329e commit f9b54e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builtin/fast-export.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static void show_progress(void)
113113
printf("progress %d objects\n", counter);
114114
}
115115

116-
static void handle_object(const unsigned char *sha1)
116+
static void export_blob(const unsigned char *sha1)
117117
{
118118
unsigned long size;
119119
enum object_type type;
@@ -312,7 +312,7 @@ static void handle_commit(struct commit *commit, struct rev_info *rev)
312312
/* Export the referenced blobs, and remember the marks. */
313313
for (i = 0; i < diff_queued_diff.nr; i++)
314314
if (!S_ISGITLINK(diff_queued_diff.queue[i]->two->mode))
315-
handle_object(diff_queued_diff.queue[i]->two->sha1);
315+
export_blob(diff_queued_diff.queue[i]->two->sha1);
316316

317317
mark_next_object(&commit->object);
318318
if (!is_encoding_utf8(encoding))
@@ -509,7 +509,7 @@ static void get_tags_and_duplicates(struct object_array *pending,
509509
commit = (struct commit *)tag;
510510
break;
511511
case OBJ_BLOB:
512-
handle_object(tag->object.sha1);
512+
export_blob(tag->object.sha1);
513513
continue;
514514
default: /* OBJ_TAG (nested tags) is already handled */
515515
warning("Tag points to object of unexpected type %s, skipping.",

0 commit comments

Comments
 (0)