git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] doc: git-add.txt: convert to new style convention

From
JAJean-Noël Avila <jean-noel.avila@scantech.com>
Date
Nov 12, 2024, 09:25 UTC
Message-ID
<0882542f-8424-4dfc-8358-f5c982aafbd4@scantech.com>
In-Reply-To
<xmqqserx8ewu.fsf@gitster.g>
Le 12/11/2024 à 01:38, Junio C Hamano a écrit :
Show 24 quoted lines
> "Jean-Noël Avila via GitGitGadget" <gitgitgadget@gmail.com> writes:
> 
>> From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr>
>>
>> Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
>> ---
>>     doc: git-add.txt: convert to new style convention
> 
> This does slightly more than converting to new style, though,
> doesn't it?  Is it so annoying to see a link that points at the same
> page you are reading right now to warrant duplicating some docs with
> conditional inclusion?
> 
>> +`add.ignoreErrors`::
>> +`add.ignore-errors` (deprecated)::
>> +	Tells `git add` to continue adding files when some files cannot be
>> +	added due to indexing errors.
>> +ifdef::git-add[]
>> +	Equivalent to the `--ignore-errors` option.
>> +endif::git-add[]
>> +ifndef::git-add[]
>> +	Equivalent to the `--ignore-errors` option of linkgit:git-add[1].
>> +endif::git-add[]
> 

This was already performed for git-clone (ebb55042a4) and git-init (e7b3a7683c). Should it be separated in a dedicated commit?

If the link is not to a specific anchor in the doc (which is the aim in html output), it is considered bad practice (against the "Make your visitor confident that the link they're following will take them where they want to go" principle). To create a sensible link, we would have to bring the visitor to the corresponding option description. This is doable, but would require an enhanced linkgit macro and additional anchors.

begin:vcard fn;quoted-printable:Jean-No=C3=ABl Avila n;quoted-printable:Avila;Jean-No=C3=ABl org:Scantech S.A. adr;quoted-printable:Savoie Technolac BP 244;;B=C3=A2timent Androm=C3=A8de - 108 Avenue du Lac L=C3=A9man ; LA MOTTE SERVOLEX;;73290;France email;internet:jean-noel.avila@scantech.com title:Embedded systems manager tel;work:+33 479 25 54 50 tel;cell:+33 633 04 64 18 x-mozilla-html:FALSE url:http://www.scantech.com version:2.1 end:vcard

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 5 in “doc: git-add.txt: convert to new style convention”
  1. doc: git-add.txt: convert to new style conventionJean-Noël Avila via GitGitGadget, Nov 11, 2024
  2. Junio C HamanoNov 12, 2024
  3. Jean-Noël AvilaNov 12, 2024
  4. Junio C HamanoNov 12, 2024
  5. doc: git-add.txt: convert to new style conventionJean-Noël Avila via GitGitGadget, Nov 16, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.