Git fork

builtin/for-each-ref: align usage string with the man page

Usage string for `git for-each-ref` was out of sync with its official
documentation. The test `t0450-txt-doc-vs-help.sh` was marked as broken
due to this.

Update the usage string to match the documentation. This allows the test
to pass, so remove the corresponding 'known breakage' marker from the
test file.

Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: shejialuo <shejialuo@gmail.com>
Mentored-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Meet Soni <meetsoni3017@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Meet Soni and committed by
Junio C Hamano
69c207dc 19623eb9

+10 -6
+10 -5
builtin/for-each-ref.c
··· 9 9 #include "strbuf.h" 10 10 #include "strvec.h" 11 11 12 + #define COMMON_USAGE_FOR_EACH_REF \ 13 + "[--count=<count>] [--shell|--perl|--python|--tcl]\n" \ 14 + " [(--sort=<key>)...] [--format=<format>]\n" \ 15 + " [--include-root-refs] [--points-at=<object>]\n" \ 16 + " [--merged[=<object>]] [--no-merged[=<object>]]\n" \ 17 + " [--contains[=<object>]] [--no-contains[=<object>]]\n" \ 18 + " [(--exclude=<pattern>)...] [--start-after=<marker>]\n" \ 19 + " [ --stdin | <pattern>... ]" 20 + 12 21 static char const * const for_each_ref_usage[] = { 13 - N_("git for-each-ref [<options>] [<pattern>]"), 14 - N_("git for-each-ref [--points-at <object>]"), 15 - N_("git for-each-ref [--merged [<commit>]] [--no-merged [<commit>]]"), 16 - N_("git for-each-ref [--contains [<commit>]] [--no-contains [<commit>]]"), 17 - N_("git for-each-ref [--start-after <marker>]"), 22 + "git for-each-ref " COMMON_USAGE_FOR_EACH_REF, 18 23 NULL 19 24 }; 20 25
-1
t/t0450/adoc-help-mismatches
··· 17 17 fast-import 18 18 fetch-pack 19 19 fmt-merge-msg 20 - for-each-ref 21 20 format-patch 22 21 fsck-objects 23 22 fsmonitor--daemon