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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Mar 17, 2013 at 04:33 UTC
f9b54e2630f4c839fbc4195693d66e790b09371b
1 file changed
+3
-3
builtin/fast-export.c
+3
-3
@@ -113,7 +113,7 @@ static void show_progress(void)
113
printf("progress %d objects\n", counter);
114
}
115
116
-static void handle_object(const unsigned char *sha1)
116
+static void export_blob(const unsigned char *sha1)
117
{
118
unsigned long size;
119
enum object_type type;
@@ -312,7 +312,7 @@ static void handle_commit(struct commit *commit, struct rev_info *rev)
312
/* Export the referenced blobs, and remember the marks. */
313
for (i = 0; i < diff_queued_diff.nr; i++)
314
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);
316
317
mark_next_object(&commit->object);
318
if (!is_encoding_utf8(encoding))
@@ -509,7 +509,7 @@ static void get_tags_and_duplicates(struct object_array *pending,
509
commit = (struct commit *)tag;
510
break;
511
case OBJ_BLOB:
512
- handle_object(tag->object.sha1);
512
+ export_blob(tag->object.sha1);
513
continue;
514
default: /* OBJ_TAG (nested tags) is already handled */
515
warning("Tag points to object of unexpected type %s, skipping.",