git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "brian m. carlson" <sandals@crustytoothpaste.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 2/2] Documentation: convert SubmittingPatches to AsciiDoc
Date: Mon, 30 Oct 2017 13:28:05 +0900	[thread overview]
Message-ID: <xmqqa8096yzu.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <20171029211308.272673-3-sandals@crustytoothpaste.net> (brian m. carlson's message of "Sun, 29 Oct 2017 21:13:08 +0000")

"brian m. carlson" <sandals@crustytoothpaste.net> writes:

Thanks.  I personally prefer the plain-text original, but I do
understand the need to have a version with ids that you can tell
others to visit in their browsers.  Assuming that this goes in the
right direction, here are a few comments.

> @@ -58,8 +65,9 @@ differs substantially from the prior version, are all good things
>  to have.
>  
>  Make sure that you have tests for the bug you are fixing.  See
> -t/README for guidance.
> +'t/README' for guidance.

I am guessing that, from the way you updated 'next' to `next'
etc. in the previous hunk, you are typesetting in <tt> anything a
reader may type literally without substitution.

Should this be `t/README`, as it is a part of something a reader may
type literally (as in "less t/README")?

> @@ -84,41 +92,45 @@ turning en_UK spelling to en_US).  Obvious typographical fixes are much
> ...
>  changes do not trigger errors with the sample pre-commit hook shipped
> -in templates/hooks--pre-commit.  To help ensure this does not happen,
> -run "git diff --check" on your changes before you commit.
> +in templates/hooks{litdd}pre-commit.  To help ensure this does not happen,
> +run `git diff --check` on your changes before you commit.

The pathname templates/hooks--pre-commit is typeset just like any
body text?

> @@ -154,8 +173,10 @@ sending out, please make sure it cleanly applies to the "master"

Out of context, but "master" we see above should probably be
`master` here, to be in line with what you did in an earlier hunk.
So should "next" we see below in the pre-context of this hunk.

> -(4) Sending your patches.
> +[[send-patches]]
> +=== Sending your patches.
> +:1: footnote:[The current maintainer: gitster@pobox.com]
> +:2: footnote:[The mailing list: git@vger.kernel.org]

Having to see these footnotes upfront is somewhat distracting for
those of us who prefer to use this file as a text document.  I see
these become part of the footnotes section at the very end of the
document (as opposed to the end of this section), so even with the
rendered output it does not look ideal.

I am not sure how much these two points matter, though.

> @@ -191,7 +212,7 @@ not ready to be applied but it is for discussion, [PATCH v2],
> ..
>  Send your patch with "To:" set to the mailing list, with "cc:" listing
>  people who are involved in the area you are touching (the output from
> -"git blame $path" and "git shortlog --no-merges $path" would help to
> ++git blame _$path_+ and +git shortlog {litdd}no-merges _$path_+ would help to
>  identify them), to solicit comments and reviews.

The +fixed width with _italics_ mixed in+ mark-up is something not
exactly new, but it is rarely used in our documentation set, so I
had to double check by actually seeing how it got rendered, and it
looked alright.

>  After the list reached a consensus that it is a good idea to apply the
> -patch, re-send it with "To:" set to the maintainer [*1*] and "cc:" the
> -list [*2*] for inclusion.
> +patch, re-send it with "To:" set to the maintainer{1} and "cc:" the
> +list{2} for inclusion.
>  
>  Do not forget to add trailers such as "Acked-by:", "Reviewed-by:" and
>  "Tested-by:" lines as necessary to credit people who helped your
>  patch.

Should these "Foo-by:" all be `Foo-by:`?

> @@ -302,85 +325,86 @@ D-C-O.  Indeed you are encouraged to do so.  Do not forget to
> ...
> +. "Reported-by:" is used to credit someone who found the bug that
> +  the patch attempts to fix.
> +. "Acked-by:" says that the person who is more familiar with the area
> +  the patch attempts to modify liked the patch.
> +. "Reviewed-by:", unlike the other tags, can only be offered by the
> +  reviewer and means that she is completely satisfied that the patch
> +  is ready for application.  It is usually offered only after a
> +  detailed review.
> +. "Tested-by:" is used to indicate that the person applied the patch
> +  and found it to have the desired effect.

Ditto.

> -An ideal patch flow
> +[[patch-flow]]
> +== An ideal patch flow
>  
>  Here is an ideal patch flow for this project the current maintainer
>  suggests to the contributors:
>  
> - (0) You come up with an itch.  You code it up.
> +. You come up with an itch.  You code it up.
>  
> - (1) Send it to the list and cc people who may need to know about
> -     the change.
> +. Send it to the list and cc people who may need to know about
> +  the change.
> ++
> +The people who may need to know are the ones whose code you
> +are butchering.  These people happen to be the ones who are
> +most likely to be knowledgeable enough to help you, but
> +they have no obligation to help you (i.e. you ask for help,
> +don't demand).  +git log -p {litdd} _$area_you_are_modifying_+ would
> +help you find out who they are.
>  
> -     The people who may need to know are the ones whose code you
> -     are butchering.  These people happen to be the ones who are
> -     most likely to be knowledgeable enough to help you, but
> -     they have no obligation to help you (i.e. you ask for help,
> -     don't demand).  "git log -p -- $area_you_are_modifying" would
> -     help you find out who they are.
> +. You get comments and suggestions for improvements.  You may
> +  even get them in a "on top of your change" patch form.
>  
> - (2) You get comments and suggestions for improvements.  You may
> -     even get them in a "on top of your change" patch form.
> +. Polish, refine, and re-send to the list and the people who
> +  spend their time to improve your patch.  Go back to step (2).

Not a complaint, but it is a shame that we have to spell out (2)
even though we are using auto-numbering feature here.

>  
> - (3) Polish, refine, and re-send to the list and the people who
> -     spend their time to improve your patch.  Go back to step (2).
> +. The list forms consensus that the last round of your patch is
> +  good.  Send it to the maintainer and cc the list.
>  
> - (4) The list forms consensus that the last round of your patch is
> -     good.  Send it to the maintainer and cc the list.
> -

By the way, to those of us who are interested in "readble diffs" may
find this hunk a bit interesting to study.  We should be able to
pair "-deleted" blocks of lines with corresponding "+added" blocks
more sensibly.

> @@ -452,23 +475,24 @@ should come after the three-dash line that signals the end of the
> ...
> +=== Pine
>  
>  (Johannes Schindelin)
>  
> +....
>  I don't know how many people still use pine, but for those poor
>  souls it may be good to mention that the quell-flowed-text is
>  needed for recent versions.
>  
>  ... the "no-strip-whitespace-before-send" option, too. AFAIK it
>  was introduced in 4.60.
> +....
>  (Linus Torvalds)
>  
>  And 4.58 needs at least this.

This line alone in the entire section for pine is done in regular
text, which looked somewhat strange.


  reply	other threads:[~2017-10-30  4:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-29 21:13 [PATCH 0/2] Convert SubmittingPatches to AsciiDoc brian m. carlson
2017-10-29 21:13 ` [PATCH 1/2] Documentation: enable compat-mode for Asciidoctor brian m. carlson
2017-10-29 21:13 ` [PATCH 2/2] Documentation: convert SubmittingPatches to AsciiDoc brian m. carlson
2017-10-30  4:28   ` Junio C Hamano [this message]
2017-10-30 12:35     ` Johannes Schindelin
2017-10-30 17:40       ` Paolo Ciarrocchi
2017-10-31 17:21         ` Johannes Schindelin
2017-10-31 18:07           ` Paolo Ciarrocchi
2017-10-30 23:24       ` brian m. carlson
2017-10-31  1:27     ` brian m. carlson

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqa8096yzu.fsf@gitster.mtv.corp.google.com \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=sandals@crustytoothpaste.net \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).