Browse Source

bundle: Add colons to list headings in "verify"

These slightly improve the reading flow by making it obvious that a list
follows.

Also, make the wording of both headings consistent by changing "contains
%d ref(s)" to "contains this ref"/"contains these %d refs".

Signed-off-by: Lukas Fleischer <git@cryptocrack.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Lukas Fleischer 12 years ago committed by Junio C Hamano
parent
commit
a02ffe0e1a
  1. 8
      bundle.c

8
bundle.c

@ -183,8 +183,8 @@ int verify_bundle(struct bundle_header *header, int verbose)
struct ref_list *r; struct ref_list *r;


r = &header->references; r = &header->references;
printf_ln(Q_("The bundle contains %d ref", printf_ln(Q_("The bundle contains this ref:",
"The bundle contains %d refs", "The bundle contains these %d refs:",
r->nr), r->nr),
r->nr); r->nr);
list_refs(r, 0, NULL); list_refs(r, 0, NULL);
@ -192,8 +192,8 @@ int verify_bundle(struct bundle_header *header, int verbose)
if (!r->nr) { if (!r->nr) {
printf_ln(_("The bundle records a complete history.")); printf_ln(_("The bundle records a complete history."));
} else { } else {
printf_ln(Q_("The bundle requires this ref", printf_ln(Q_("The bundle requires this ref:",
"The bundle requires these %d refs", "The bundle requires these %d refs:",
r->nr), r->nr),
r->nr); r->nr);
list_refs(r, 0, NULL); list_refs(r, 0, NULL);

Loading…
Cancel
Save