]> git.ipfire.org Git - thirdparty/git.git/commit
for-each-ref: fix documentation argument ordering
authorKarthik Nayak <karthik.188@gmail.com>
Mon, 28 Jul 2025 20:20:47 +0000 (22:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Jul 2025 21:16:37 +0000 (14:16 -0700)
commita7c8a4c5f5bbe6c232c8aefc02499fe1c0b6d221
treec115083d54fb983cbc434cbb8885d2e3428d1888
parent65855751d190d66d15bc2c7e17e93fe00d04c539
for-each-ref: fix documentation argument ordering

Improve the 'git-for-each-ref(1)' documentation with two corrections:

1. Add parentheses around `--exclude=<pattern>` to indicate this option
   can be repeated as a complete unit.

2. Move `--stdin | <pattern> ...` to the end, after all flags, since
   `<pattern>` is a positional argument that should appear last in the
   argument list.

While here, change to using the synopsis block which will automatically
format placeholders in italics and keywords in monospace.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-for-each-ref.adoc