Skip to content

Commit eb3a118

Browse files
committed
fixup! survey: summarize total sizes by object type
1 parent ea0fde9 commit eb3a118

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

builtin/survey.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ struct survey_report {
186186
#define REPORT_TYPE_COMMIT 0
187187
#define REPORT_TYPE_TREE 1
188188
#define REPORT_TYPE_BLOB 2
189-
#define REPORT_TYPE_COUNT 3
189+
#define REPORT_TYPE_TAG 3
190+
#define REPORT_TYPE_COUNT 4
190191

191192
struct survey_context {
192193
/* Options that control what is done. */
@@ -703,6 +704,10 @@ static void increment_object_totals(struct survey_context *ctx,
703704
increment_totals(ctx, oids, &summary);
704705

705706
switch (type) {
707+
case OBJ_TAG:
708+
total = &ctx->report.by_type[REPORT_TYPE_TAG];
709+
break;
710+
706711
case OBJ_COMMIT:
707712
total = &ctx->report.by_type[REPORT_TYPE_COMMIT];
708713
break;

0 commit comments

Comments
 (0)