mirror of
https://github.com/git/git.git
synced 2026-01-09 17:46:37 +00:00
doc txt & -h consistency: add missing options
Change those built-in commands that were attempting to exhaustively list the options in the "-h" output to actually do so, and always have *.txt documentation know about the exhaustive list of options. Let's also fix the documentation and -h output for those built-in commands where the *.txt and -h output was a mismatch of missing options on both sides. In the case of "interpret-trailers" fixing the missing options reveals that the *.txt version was implicitly claiming that the command had two operating modes, which a look at the -h version (and studying the documentation) will show is not the case. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
3e4ebe3a40
commit
d9054a19ed
@@ -81,8 +81,8 @@ int cmd_hash_object(int argc, const char **argv, const char *prefix)
|
||||
{
|
||||
static const char * const hash_object_usage[] = {
|
||||
N_("git hash-object [-t <type>] [-w] [--path=<file> | --no-filters]\n"
|
||||
" [--stdin] [--] <file>..."),
|
||||
"git hash-object --stdin-paths",
|
||||
" [--stdin [--literally]] [--] <file>..."),
|
||||
N_("git hash-object [-t <type>] [-w] --stdin-paths [--no-filters]"),
|
||||
NULL
|
||||
};
|
||||
const char *type = blob_type;
|
||||
|
||||
Reference in New Issue
Block a user