From: Junio C Hamano <gitster@pobox.com>
To: Ramsay Jones <ramsay@ramsayjones.plus.com>
Cc: GIT Mailing-list <git@vger.kernel.org>,
Patrick Steinhardt <ps@pks.im>, Elijah Newren <newren@gmail.com>
Subject: Re: [RFC PATCH 2/4] doc: remembering-renames.adoc: fix asciidoc warnings
Date: Fri, 26 Sep 2025 08:42:39 -0700 [thread overview]
Message-ID: <xmqqqzvtcj9s.fsf@gitster.g> (raw)
In-Reply-To: <6dc8844c-8554-4c6c-a3bd-5ad2c04ab7a6@ramsayjones.plus.com> (Ramsay Jones's message of "Fri, 26 Sep 2025 01:24:22 +0100")
Ramsay Jones <ramsay@ramsayjones.plus.com> writes:
> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
> ---
> .../technical/remembering-renames.adoc | 63 +++++++++----------
> 1 file changed, 31 insertions(+), 32 deletions(-)
I know this is RFC not to be directly applied yet, but can you
describe what warnings are in scope of this fix to help commenting
on the changes?
> diff --git a/Documentation/technical/remembering-renames.adoc b/Documentation/technical/remembering-renames.adoc
> index 73f41761e2..89db8b406d 100644
> --- a/Documentation/technical/remembering-renames.adoc
> +++ b/Documentation/technical/remembering-renames.adoc
> @@ -10,32 +10,32 @@ history as an optimization, assuming all merges are automatic and clean
>
> Outline:
>
> - 0. Assumptions
> + 0 Assumptions
>
> - 1. How rebasing and cherry-picking work
> + 1 How rebasing and cherry-picking work
> ...
> - 8. How directory rename detection interacts with the above and why this
> - optimization is still safe even if merge.directoryRenames is set to
> - "true".
> + 8 How directory rename detection interacts with the above and why this
> + optimization is still safe even if merge.directoryRenames is set to
> + "true".
I always thought that numbered list would have a period "." after
the number, but if doing this produces commonly accepted rendition
of a numbered list without warnings, I can buy it. I personally may
feel it a bit awkward to read the source text until I get
accustomed, though.
> -=== 0. Assumptions ===
> +== 0. Assumptions ==
This is because these sections are not nested within a group that is
headed with a "== title ==" chapter? Which makes sense. I notice
that this one has a period "." after the number (which the warning
mechanism probably did not care---it is just part of the title).
> Here's an example where that can happen:
> +
> * E:oldfile had 20 lines
> +
> * G:newfile added 10 new lines at the beginning of the file
> +
> * A:oldfile kept the first 3 lines of the file, and deleted all the rest
> +
> then
> +
> => A':newfile would have 13 lines, 3 of which matches those in A:oldfile.
> -E:oldfile -> G:newfile would be detected as a rename, but A:oldfile and
> -A':newfile would not be.
> + E:oldfile -> G:newfile would be detected as a rename, but A:oldfile and
> + A':newfile would not be.
With blank lines in between I personally find the source text easier
to read, so no complaints ;-)
prev parent reply other threads:[~2025-09-26 15:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-26 0:24 [RFC PATCH 2/4] doc: remembering-renames.adoc: fix asciidoc warnings Ramsay Jones
2025-09-26 15:42 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqqzvtcj9s.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=newren@gmail.com \
--cc=ps@pks.im \
--cc=ramsay@ramsayjones.plus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.