@@ -338,11 +338,11 @@ static int do_sign(struct strbuf *buffer)
338
338
}
339
339
340
340
static const char tag_template [] =
341
- N_ ("\nWrite a tag message \n"
341
+ N_ ("\nWrite a message for tag:\n %s \n"
342
342
"Lines starting with '%c' will be ignored.\n" );
343
343
344
344
static const char tag_template_nocleanup [] =
345
- N_ ("\nWrite a tag message \n"
345
+ N_ ("\nWrite a message for tag:\n %s \n"
346
346
"Lines starting with '%c' will be kept; you may remove them"
347
347
" yourself if you want to.\n" );
348
348
@@ -438,9 +438,9 @@ static void create_tag(const unsigned char *object, const char *tag,
438
438
struct strbuf buf = STRBUF_INIT ;
439
439
strbuf_addch (& buf , '\n' );
440
440
if (opt -> cleanup_mode == CLEANUP_ALL )
441
- strbuf_commented_addf (& buf , _ (tag_template ), comment_line_char );
441
+ strbuf_commented_addf (& buf , _ (tag_template ), tag , comment_line_char );
442
442
else
443
- strbuf_commented_addf (& buf , _ (tag_template_nocleanup ), comment_line_char );
443
+ strbuf_commented_addf (& buf , _ (tag_template_nocleanup ), tag , comment_line_char );
444
444
write_or_die (fd , buf .buf , buf .len );
445
445
strbuf_release (& buf );
446
446
}
0 commit comments