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>maint
							parent
							
								
									acf7828e38
								
							
						
					
					
						commit
						5af8b61cc3
					
				|  | @ -9,7 +9,8 @@ git-hash-object - Compute object ID and optionally creates a blob from a file | ||||||
| SYNOPSIS | SYNOPSIS | ||||||
| -------- | -------- | ||||||
| [verse] | [verse] | ||||||
| 'git hash-object' [-t <type>] [-w] [--path=<file>|--no-filters] [--stdin [--literally]] [--] <file>... | 'git hash-object' [-t <type>] [-w] [--path=<file>|--no-filters] | ||||||
|  | 		[--stdin [--literally]] [--] <file>... | ||||||
| 'git hash-object' [-t <type>] [-w] --stdin-paths [--no-filters] | 'git hash-object' [-t <type>] [-w] --stdin-paths [--no-filters] | ||||||
|  |  | ||||||
| DESCRIPTION | DESCRIPTION | ||||||
|  |  | ||||||
|  | @ -9,7 +9,8 @@ git-worktree - Manage multiple working trees | ||||||
| SYNOPSIS | SYNOPSIS | ||||||
| -------- | -------- | ||||||
| [verse] | [verse] | ||||||
| 'git worktree add' [-f] [--detach] [--checkout] [--lock [--reason <string>]] [-b <new-branch>] <path> [<commit-ish>] | 'git worktree add' [-f] [--detach] [--checkout] [--lock [--reason <string>]] | ||||||
|  | 		   [-b <new-branch>] <path> [<commit-ish>] | ||||||
| 'git worktree list' [-v | --porcelain [-z]] | 'git worktree list' [-v | --porcelain [-z]] | ||||||
| 'git worktree lock' [--reason <string>] <worktree> | 'git worktree lock' [--reason <string>] <worktree> | ||||||
| 'git worktree move' <worktree> <new-path> | 'git worktree move' <worktree> <new-path> | ||||||
|  |  | ||||||
|  | @ -60,7 +60,8 @@ static void get_populated_hooks(struct strbuf *hook_info, int nongit) | ||||||
| } | } | ||||||
|  |  | ||||||
| static const char * const bugreport_usage[] = { | static const char * const bugreport_usage[] = { | ||||||
| 	N_("git bugreport [-o|--output-directory <file>] [-s|--suffix <format>] [--diagnose[=<mode>]"), | 	N_("git bugreport [-o|--output-directory <file>] [-s|--suffix <format>]\n" | ||||||
|  | 	   "              [--diagnose[=<mode>]"), | ||||||
| 	NULL | 	NULL | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | @ -13,10 +13,10 @@ | ||||||
| 	N_("git commit-graph verify [--object-dir <objdir>] [--shallow] [--[no-]progress]") | 	N_("git commit-graph verify [--object-dir <objdir>] [--shallow] [--[no-]progress]") | ||||||
|  |  | ||||||
| #define BUILTIN_COMMIT_GRAPH_WRITE_USAGE \ | #define BUILTIN_COMMIT_GRAPH_WRITE_USAGE \ | ||||||
| 	N_("git commit-graph write [--object-dir <objdir>] [--append] " \ | 	N_("git commit-graph write [--object-dir <objdir>] [--append]\n" \ | ||||||
| 	   "[--split[=<strategy>]] [--reachable|--stdin-packs|--stdin-commits] " \ | 	   "                       [--split[=<strategy>]] [--reachable|--stdin-packs|--stdin-commits]\n" \ | ||||||
| 	   "[--changed-paths] [--[no-]max-new-filters <n>] [--[no-]progress] " \ | 	   "                       [--changed-paths] [--[no-]max-new-filters <n>] [--[no-]progress]\n" \ | ||||||
| 	   "<split options>") | 	   "                       <split options>") | ||||||
|  |  | ||||||
| static const char * builtin_commit_graph_verify_usage[] = { | static const char * builtin_commit_graph_verify_usage[] = { | ||||||
| 	BUILTIN_COMMIT_GRAPH_VERIFY_USAGE, | 	BUILTIN_COMMIT_GRAPH_VERIFY_USAGE, | ||||||
|  |  | ||||||
|  | @ -15,8 +15,8 @@ | ||||||
| #include "parse-options.h" | #include "parse-options.h" | ||||||
|  |  | ||||||
| static const char * const commit_tree_usage[] = { | static const char * const commit_tree_usage[] = { | ||||||
| 	N_("git commit-tree [(-p <parent>)...] [-S[<keyid>]] [(-m <message>)...] " | 	N_("git commit-tree [(-p <parent>)...] [-S[<keyid>]] [(-m <message>)...]\n" | ||||||
| 		"[(-F <file>)...] <tree>"), | 	   "                [(-F <file>)...] <tree>"), | ||||||
| 	NULL | 	NULL | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | @ -3,7 +3,8 @@ | ||||||
| #include "diagnose.h" | #include "diagnose.h" | ||||||
|  |  | ||||||
| static const char * const diagnose_usage[] = { | static const char * const diagnose_usage[] = { | ||||||
| 	N_("git diagnose [-o|--output-directory <path>] [-s|--suffix <format>] [--mode=<mode>]"), | 	N_("git diagnose [-o|--output-directory <path>] [-s|--suffix <format>]\n" | ||||||
|  | 	   "             [--mode=<mode>]"), | ||||||
| 	NULL | 	NULL | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | @ -80,7 +80,8 @@ static void hash_stdin_paths(const char *type, int no_filters, unsigned flags, | ||||||
| int cmd_hash_object(int argc, const char **argv, const char *prefix) | int cmd_hash_object(int argc, const char **argv, const char *prefix) | ||||||
| { | { | ||||||
| 	static const char * const hash_object_usage[] = { | 	static const char * const hash_object_usage[] = { | ||||||
| 		N_("git hash-object [-t <type>] [-w] [--path=<file> | --no-filters] [--stdin] [--] <file>..."), | 		N_("git hash-object [-t <type>] [-w] [--path=<file> | --no-filters]\n" | ||||||
|  | 		   "                [--stdin] [--] <file>..."), | ||||||
| 		"git hash-object  --stdin-paths", | 		"git hash-object  --stdin-paths", | ||||||
| 		NULL | 		NULL | ||||||
| 	}; | 	}; | ||||||
|  |  | ||||||
|  | @ -515,7 +515,8 @@ static int shared_callback(const struct option *opt, const char *arg, int unset) | ||||||
| } | } | ||||||
|  |  | ||||||
| static const char *const init_db_usage[] = { | static const char *const init_db_usage[] = { | ||||||
| 	N_("git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]] [<directory>]"), | 	N_("git init [-q | --quiet] [--bare] [--template=<template-directory>]\n" | ||||||
|  | 	   "         [--shared[=<permissions>]] [<directory>]"), | ||||||
| 	NULL | 	NULL | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | @ -13,7 +13,9 @@ | ||||||
| #include "config.h" | #include "config.h" | ||||||
|  |  | ||||||
| static const char * const git_interpret_trailers_usage[] = { | static const char * const git_interpret_trailers_usage[] = { | ||||||
| 	N_("git interpret-trailers [--in-place] [--trim-empty] [(--trailer <token>[(=|:)<value>])...] [<file>...]"), | 	N_("git interpret-trailers [--in-place] [--trim-empty]\n" | ||||||
|  | 	   "                       [(--trailer <token>[(=|:)<value>])...]\n" | ||||||
|  | 	   "                       [<file>...]"), | ||||||
| 	NULL | 	NULL | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | @ -38,7 +38,9 @@ static int list_tree(struct object_id *oid) | ||||||
| } | } | ||||||
|  |  | ||||||
| static const char * const read_tree_usage[] = { | 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 | 	NULL | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | @ -14,7 +14,8 @@ static const char* show_branch_usage[] = { | ||||||
|     N_("git show-branch [-a | --all] [-r | --remotes] [--topo-order | --date-order]\n" |     N_("git show-branch [-a | --all] [-r | --remotes] [--topo-order | --date-order]\n" | ||||||
|        "                [--current] [--color[=<when>] | --no-color] [--sparse]\n" |        "                [--current] [--color[=<when>] | --no-color] [--sparse]\n" | ||||||
|        "                [--more=<n> | --list | --independent | --merge-base]\n" |        "                [--more=<n> | --list | --independent | --merge-base]\n" | ||||||
|        "                [--no-name | --sha1-name] [--topics] [(<rev> | <glob>)...]"), |        "                [--no-name | --sha1-name] [--topics]\n" | ||||||
|  |        "                [(<rev> | <glob>)...]"), | ||||||
|     N_("git show-branch (-g | --reflog)[=<n>[,<base>]] [--list] [<ref>]"), |     N_("git show-branch (-g | --reflog)[=<n>[,<base>]] [--list] [<ref>]"), | ||||||
|     NULL |     NULL | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | @ -9,7 +9,9 @@ | ||||||
| #include "parse-options.h" | #include "parse-options.h" | ||||||
|  |  | ||||||
| static const char * const show_ref_usage[] = { | static const char * const show_ref_usage[] = { | ||||||
| 	N_("git show-ref [-q | --quiet] [--verify] [--head] [-d | --dereference] [-s | --hash[=<n>]] [--abbrev[=<n>]] [--tags] [--heads] [--] [<pattern>...]"), | 	N_("git show-ref [-q | --quiet] [--verify] [--head] [-d | --dereference]\n" | ||||||
|  | 	   "             [-s | --hash[=<n>]] [--abbrev[=<n>]] [--tags]\n" | ||||||
|  | 	   "             [--heads] [--] [<pattern>...]"), | ||||||
| 	N_("git show-ref --exclude-existing[=<pattern>]"), | 	N_("git show-ref --exclude-existing[=<pattern>]"), | ||||||
| 	NULL | 	NULL | ||||||
| }; | }; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Ævar Arnfjörð Bjarmason
						Ævar Arnfjörð Bjarmason