summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-04-04 18:25:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-04-05 05:51:59 (GMT)
commit01dc801adad35d4e2f815dc1918dad057631bc0e (patch)
tree25ac82ebd7e6db58d3e0e50e56d4358837f237d6
parent041f5ea1cf987a4068ef5f39ba0a09be85952064 (diff)
downloadgit-01dc801adad35d4e2f815dc1918dad057631bc0e.zip
git-01dc801adad35d4e2f815dc1918dad057631bc0e.tar.gz
git-01dc801adad35d4e2f815dc1918dad057631bc0e.tar.bz2
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>
-rw-r--r--builtin/tag.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/builtin/tag.c b/builtin/tag.c
index 02f6bd1..faae364 100644
--- a/builtin/tag.c
+++ b/builtin/tag.c
@@ -22,10 +22,11 @@
#include "ref-filter.h"
static const char * const git_tag_usage[] = {
- N_("git tag [-a | -s | -u <key-id>] [-f] [-m <msg> | -F <file>] <tagname> [<head>]"),
+ N_("git tag [-a | -s | -u <key-id>] [-f] [-m <msg> | -F <file>]\n"
+ "\t\t<tagname> [<head>]"),
N_("git tag -d <tagname>..."),
- N_("git tag -l [-n[<num>]] [--contains <commit>] [--no-contains <commit>] [--points-at <object>]"
- "\n\t\t[--format=<format>] [--[no-]merged [<commit>]] [<pattern>...]"),
+ N_("git tag -l [-n[<num>]] [--contains <commit>] [--no-contains <commit>] [--points-at <object>]\n"
+ "\t\t[--format=<format>] [--[no-]merged [<commit>]] [<pattern>...]"),
N_("git tag -v [--format=<format>] <tagname>..."),
NULL
};
@@ -215,7 +216,7 @@ static void create_tag(const struct object_id *object, const char *tag,
type = oid_object_info(the_repository, object, NULL);
if (type <= OBJ_NONE)
- die(_("bad object type."));
+ die(_("bad object type."));
strbuf_addf(&header,
"object %s\n"