From: Junio C Hamano <gitster@pobox.com>
To: Dragan Simic <dsimic@manjaro.org>
Cc: git@vger.kernel.org, "Rubén Justo" <rjusto@gmail.com>
Subject: Re: [PATCH] branch: adjust documentation
Date: Wed, 28 Feb 2024 09:20:02 -0800 [thread overview]
Message-ID: <xmqqttlsld4t.fsf@gitster.g> (raw)
In-Reply-To: <d1f928b98238a60a96bee0d3f410deef@manjaro.org> (Dragan Simic's message of "Wed, 28 Feb 2024 03:19:29 +0100")
Dragan Simic <dsimic@manjaro.org> writes:
> Hello Junio,
>
> Just checking, do you see the changes that Ruben proposed in this patch
> fit for our starting point in the git-branch documentation rewrite?
The synopsis part may, but with reservations. I know you two are
aiming to make this in many small incremental steps, but even then
I'd have to say the way these placeholder words will be used in the
text part (both DESCRIPTION and OPTIONS) will be so different from
the final shape envisioned [*1*], the wording that may fit well within
the current text might not be the best fit in the final text.
The current description section talks about option and its arguments
without showing the syntax, making it unnecessary to be extra
verbose. For example, we see something like this:
With a `-m` or `-M` option, <oldbranch> will be renamed to
<newbranch>. If <oldbranch> had a corresponding reflog, it is
renamed to match ...
But in the final shape of the documentation, I would like to see the
description section not talk about these arguments, and would read
more like
When given `-m` or `-M` options, the command renames an existing
branch to a different name.
among short descriptions made at the conceptual level on other modes
like "listing" mode, "delete" mode, etc. [*3*]
And the option description would become something like [*]:
-m [<one>] <two>::
Renames the branch <one> (the current branch is used when
not given) to a new name <two>, together with its reflog and
configuration settings for the branch. ...
Side note: <one> and <two> are meta-placeholders for the purpose
of this document; Ruben's patch proposes to call them <branch>
and <new-branch>.
Now in such a context, <one> and <two> placeholders having actually
the word "branch" in it would sound redundant and awkward to read,
Even though the choice of words Ruben made in the patch under
discussion may work well in the current document structure. I
suspect these words will have to be chosen again when we start
making the real organizational changes to the description and
options sections.
In other words, I do not think that the patch makes an effective
"one good step in the right direction". At least, I couldn't see
how the wording for placeholders the patch proposes to use would be
helpful in deciding the placeholders used in the final version.
Thanks for pinging.
[Footnotes]
*1* Do we share the vision on how the final version should look
like? Here I am assuming "the final shape envisioned" is along
the lines of [*2*], i.e.
(1) trim descriptions to just enumerate different modes of
operations with explanation on what they do at the
conceptual level;
(2) make each entry in the options section self contained, by
showing the option with their <argument>s, referring to
them in the explanation text;
(3) remove non-option <argument> from the options list.
*2* https://lore.kernel.org/git/xmqqttmmlahf.fsf@gitster.g/
*3* Because "git branch" does so many things, the DESCRIPTION
section should first say the purpose of the section is to serve
as brief catalog of features to help readers to find the entry
in the option section to jump to quickly. Something like:
The "git branch" command works in many modes (see SYNOPSIS
above). By default the command works in the "list" option (the
`--list` option explicitly asks for this mode).
will be at the beginning of the section. The first four
paragraphs in the current DESCRIPTION section is about this
list mode. The first three of them should probably be moved to
the OPTIONS section under `--list`. The fourth paragraph
should be split and described in the entries of individual
options it talks about in the OPTIONS section.
.
next prev parent reply other threads:[~2024-02-28 17:20 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-15 18:42 [PATCH] branch: rework the descriptions of rename and copy operations Dragan Simic
2024-02-15 19:28 ` Kristoffer Haugsbakk
2024-02-15 19:47 ` Dragan Simic
2024-02-15 20:41 ` Junio C Hamano
2024-02-15 21:00 ` Dragan Simic
2024-02-15 21:52 ` Rubén Justo
2024-02-15 22:13 ` Junio C Hamano
2024-02-15 23:34 ` Rubén Justo
2024-02-16 3:32 ` Dragan Simic
2024-02-17 14:58 ` Rubén Justo
2024-02-18 20:38 ` Dragan Simic
2024-02-19 19:49 ` Junio C Hamano
2024-02-19 19:55 ` Dragan Simic
2024-02-20 18:24 ` Junio C Hamano
2024-02-20 19:12 ` Rubén Justo
2024-02-20 19:49 ` Dragan Simic
2024-02-20 20:25 ` [PATCH] branch: adjust documentation Rubén Justo
2024-02-20 20:34 ` Dragan Simic
2024-02-28 2:19 ` Dragan Simic
2024-02-28 17:20 ` Junio C Hamano [this message]
2024-02-28 17:24 ` Junio C Hamano
2024-02-29 1:56 ` Dragan Simic
2024-02-29 18:56 ` Rubén Justo
2024-02-29 19:33 ` Junio C Hamano
2024-02-29 20:02 ` Rubén Justo
2024-02-29 20:09 ` Dragan Simic
2024-03-02 16:18 ` Rubén Justo
2024-02-20 19:32 ` [PATCH] branch: rework the descriptions of rename and copy operations Dragan Simic
2024-02-20 19:14 ` Rubén Justo
2024-02-20 19:56 ` Dragan Simic
2024-02-15 22:27 ` Dragan Simic
2024-02-15 23:38 ` Rubén Justo
2024-02-15 22:31 ` Kyle Lippincott
2024-02-15 22:38 ` Dragan Simic
2024-02-15 22:56 ` Kyle Lippincott
2024-02-15 23:09 ` Dragan Simic
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=xmqqttlsld4t.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=dsimic@manjaro.org \
--cc=git@vger.kernel.org \
--cc=rjusto@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).