aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/read-tree.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-10-13 17:39:02 +0200
committerJunio C Hamano <gitster@pobox.com>2022-10-13 09:32:55 -0700
commit5af8b61cc36216bfde9d8b934fb8b657c2093aec (patch)
tree6620fb9dab8cf728be22d1e1d74e5f9455157170 /builtin/read-tree.c
parentbuilt-ins: consistently add "\n" between "usage" and options (diff)
downloadgit-5af8b61cc36216bfde9d8b934fb8b657c2093aec.tar.gz
git-5af8b61cc36216bfde9d8b934fb8b657c2093aec.zip
doc txt & -h consistency: word-wrap
Change the documentation and -h output for those built-in commands where both the -h output and *.txt were lacking in word-wrapping. There are many more built-ins that could use this treatment, this change is narrowed to those where this whitespace change is needed to make the -h and *.txt consistent in the end. In the case of "Documentation/git-hash-object.txt" and "builtin/hash-object.c" this is not a "doc txt & -h consistency" change, as we're changing both versions, doing so here makes a subsequent change smaller. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/read-tree.c')
-rw-r--r--builtin/read-tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/read-tree.c b/builtin/read-tree.c
index 9f1f33e954..b3a389e1b1 100644
--- a/builtin/read-tree.c
+++ b/builtin/read-tree.c
@@ -38,7 +38,9 @@ static int list_tree(struct object_id *oid)
}
static const char * const read_tree_usage[] = {
- N_("git read-tree [(-m [--trivial] [--aggressive] | --reset | --prefix=<prefix>) [-u | -i]] [--no-sparse-checkout] [--index-output=<file>] (--empty | <tree-ish1> [<tree-ish2> [<tree-ish3>]])"),
+ N_("git read-tree [(-m [--trivial] [--aggressive] | --reset | --prefix=<prefix>)\n"
+ " [-u | -i]] [--no-sparse-checkout] [--index-output=<file>]\n"
+ " (--empty | <tree-ish1> [<tree-ish2> [<tree-ish3>]])"),
NULL
};