tag: fix formatting

Wrap usage line at '<tagname>'. Also, wrap strings with '\n' at the end of string fragments instead of at the beginning of the next string fragment. Convert a space-indent into a tab-indent for style. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Denton Liu committed Apr 4, 2019 at 11:25 UTC 01dc801adad35d4e2f815dc1918dad057631bc0e
1 file changed +5 -4
builtin/tag.c
+5 -4
@@ -22,10 +22,11 @@
22 #include "ref-filter.h"
23
24 static const char * const git_tag_usage[] = {
25 - N_("git tag [-a | -s | -u <key-id>] [-f] [-m <msg> | -F <file>] <tagname> [<head>]"),
25 + N_("git tag [-a | -s | -u <key-id>] [-f] [-m <msg> | -F <file>]\n"
26 + "\t\t<tagname> [<head>]"),
27 N_("git tag -d <tagname>..."),
27 - N_("git tag -l [-n[<num>]] [--contains <commit>] [--no-contains <commit>] [--points-at <object>]"
28 - "\n\t\t[--format=<format>] [--[no-]merged [<commit>]] [<pattern>...]"),
28 + N_("git tag -l [-n[<num>]] [--contains <commit>] [--no-contains <commit>] [--points-at <object>]\n"
29 + "\t\t[--format=<format>] [--[no-]merged [<commit>]] [<pattern>...]"),
30 N_("git tag -v [--format=<format>] <tagname>..."),
31 NULL
32 };
@@ -215,7 +216,7 @@ static void create_tag(const struct object_id *object, const char *tag,
216
217 type = oid_object_info(the_repository, object, NULL);
218 if (type <= OBJ_NONE)
218 - die(_("bad object type."));
219 + die(_("bad object type."));
220
221 strbuf_addf(&header,
222 "object %s\n"