Skip to content

Commit 01dc801

Browse files
Denton-Lgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 041f5ea commit 01dc801

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

builtin/tag.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
#include "ref-filter.h"
2323

2424
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>]"),
2627
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>...]"),
2930
N_("git tag -v [--format=<format>] <tagname>..."),
3031
NULL
3132
};
@@ -215,7 +216,7 @@ static void create_tag(const struct object_id *object, const char *tag,
215216

216217
type = oid_object_info(the_repository, object, NULL);
217218
if (type <= OBJ_NONE)
218-
die(_("bad object type."));
219+
die(_("bad object type."));
219220

220221
strbuf_addf(&header,
221222
"object %s\n"

0 commit comments

Comments
 (0)