From: Junio C Hamano Date: Tue, 12 Nov 2024 00:48:01 GMT Subject: Re: [PATCH v2 1/5] doc: git-diff: apply new documentation guidelines Message-ID: In-Reply-To: "Jean-Noël Avila via GitGitGadget" writes: > +[synopsis] > +git diff [] [] [--] [...] > +git diff [] --cached [--merge-base] [] [--] [...] > +git diff [] [--merge-base] [...] [--] [...] > +git diff [] ... [--] [...] > +git diff [] > +git diff [] --no-index [--] Again, not having to worry about `mark-up` __ in SYNOPSIS section is very nice. You may already have explained the rules elsewhere, but please help me refresh my memory with some explanation. > -'git diff' [] [--] [...]:: > +`git diff [] [--] [...]`:: Here, we just say `everything in literal, including placeholders`, which is very pleasant for us writers. > --1 --base:: > --2 --ours:: > --3 --theirs:: > +`-1` `--base`:: > +`-2` `--ours`:: > +`-3` `--theirs`:: Why aren't these `-1 --base` and instead mark up individual tokens? > -...:: > - The parameters, when given, are used to limit > +__...:: This has to do the _italics_ for placeholders, unlike the full command line examples we saw earlier? Where does this difference come from? Thanks.