@@ -197,9 +197,7 @@ static void commit_info_destroy(struct commit_info *ci)
197
197
strbuf_release (& ci -> summary );
198
198
}
199
199
200
- static void get_commit_info (struct commit * commit ,
201
- struct commit_info * ret ,
202
- int detailed )
200
+ static void get_commit_info (struct commit * commit , struct commit_info * ret )
203
201
{
204
202
int len ;
205
203
const char * subject , * encoding ;
@@ -211,11 +209,6 @@ static void get_commit_info(struct commit *commit,
211
209
& ret -> author , & ret -> author_mail ,
212
210
& ret -> author_time , & ret -> author_tz );
213
211
214
- if (!detailed ) {
215
- repo_unuse_commit_buffer (the_repository , commit , message );
216
- return ;
217
- }
218
-
219
212
get_ac_line (message , "\ncommitter " ,
220
213
& ret -> committer , & ret -> committer_mail ,
221
214
& ret -> committer_time , & ret -> committer_tz );
@@ -263,7 +256,7 @@ static int emit_one_suspect_detail(struct blame_origin *suspect, int repeat)
263
256
return 0 ;
264
257
265
258
suspect -> commit -> object .flags |= METAINFO_SHOWN ;
266
- get_commit_info (suspect -> commit , & ci , 1 );
259
+ get_commit_info (suspect -> commit , & ci );
267
260
printf ("author %s\n" , ci .author .buf );
268
261
printf ("author-mail %s\n" , ci .author_mail .buf );
269
262
printf ("author-time %" PRItime "\n" , ci .author_time );
@@ -471,7 +464,7 @@ static void emit_other(struct blame_scoreboard *sb, struct blame_entry *ent, int
471
464
int show_raw_time = !!(opt & OUTPUT_RAW_TIMESTAMP );
472
465
const char * default_color = NULL , * color = NULL , * reset = NULL ;
473
466
474
- get_commit_info (suspect -> commit , & ci , 1 );
467
+ get_commit_info (suspect -> commit , & ci );
475
468
oid_to_hex_r (hex , & suspect -> commit -> object .oid );
476
469
477
470
cp = blame_nth_line (sb , ent -> lno );
@@ -665,7 +658,7 @@ static void find_alignment(struct blame_scoreboard *sb, int *option)
665
658
if (!(suspect -> commit -> object .flags & METAINFO_SHOWN )) {
666
659
struct commit_info ci = COMMIT_INFO_INIT ;
667
660
suspect -> commit -> object .flags |= METAINFO_SHOWN ;
668
- get_commit_info (suspect -> commit , & ci , 1 );
661
+ get_commit_info (suspect -> commit , & ci );
669
662
if (* option & OUTPUT_SHOW_EMAIL )
670
663
num = utf8_strwidth (ci .author_mail .buf );
671
664
else
0 commit comments