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

Re: [PATCH v2] SubmittingPatches: release-notes entry experiment

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 26, 2024, 16:28 UTC
Message-ID
<xmqq1q7xc5ys.fsf@gitster.g>
In-Reply-To
<dda1ba52-7b43-4017-96e7-10080618d4e7@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 6 quoted lines
>> +*This is EXPERIMENTAL*.  When sending a topic, you can propose one
>> +paragraph summary that appears in the "What's cooking" report when it
>> +is picked up to explain the topic.  If you choose to do so, please
>> +write 2-5 lines of a paragraph that will fit well in our release notes
>
> Maybe "please write a 2-5 line paragraph"?
Very true.
Show 8 quoted lines
>> +(see Documentation/RelNotes/* directory for examples), and make it
>> +the first paragraph of the cover letter.  For a single-patch series,
>> +use the space between the three-dash line and the diffstat, as
>> +described earlier.
>
> I think this is a good idea - one question though, how do you want
> patch authors to indicate that the first paragraph should be used as
> the summary?

I want to start this as a light-weight process for contributors, and leave the automation for later, because we do not know how this will be useful in practice. We may end up talking in inconsistent voices if the author-supplied summary is used verbatim, so automation has its limit---the result always need to be copy-edited.

In an case, taking an example from what eventually became 9187b276 (Merge branch 'pw/diff-no-index-from-named-pipes', 2023-07-17), let's illustrate how the current process works and the proposed new process would have worked.

The commit log message of the topic reads:
    Merge branch 'pw/diff-no-index-from-named-pipes'
    "git diff --no-index" learned to read from named pipes as if they
    were regular files, to allow "git diff <(process) <(substitution)"
    some shells support.
    * pw/diff-no-index-from-named-pipes:
      diff --no-index: support reading from named pipes
      t4054: test diff --no-index with stdin
      diff --no-index: die on error reading stdin
      diff --no-index: refuse to compare stdin to a directory

The three-line paragraph summary were written by me back then first in the draft of "What's cooking" being prepared when the topic was first merged to 'seen', and then the integration process [*1*] copied the description to the merge commit message. Such a merge commit with the summary are made every time the integration cycle runs, including the time the topic gets merged to 'next' and more importantly to 'master', at which point, it also gets distributed into sections of the draft version of RelNotes.

The topic is listed in the release notes for Git 2.42 as one of the "UI, Workflows & Features":

    * "git diff --no-index" learned to read from named pipes as if they
      were regular files, to allow "git diff <(process) <(substitution)"
      some shells support.

Its cover letter <cover.1688586536.git.phillip.wood@dunelm.org.uk> started like so:

    In some shells, such as bash and zsh, it's possible to use a command
    substitution to provide the output of a command as a file argument to
    another process, like so:
      diff -u <(printf "a\nb\n") <(printf "a\nc\n")
    However, ...
but you could have started it like so:
    * "git diff --no-index" learned to read from named pipes as if they
      were regular files, to allow "git diff <(process) <(substitution)"
      some shells support.
    In some shells, such as bash and zsh, it's possible to use a command
    substitution to provide the output of a command as a file argument to
    another process, like so:
    ...

and I suspect it would be sufficient to notice that the paragraph wants to be the topic description. We may even feed it to automation if we decide to do so later [*2*]. Until then we

 - identify three-place indented first paragraph that is 2-5 lines
   long whose first line is indented with " * ";
 - somehow use it when adding the topic to "What's cooking" draft;

and then the integration process merges the topic to 'seen' and uses it in the merge commit log message. We *can* still copy-edit what I keep in the draft of "What's cooking" which I send to the list about twice a week. When the topic eventually hits 'master', the integration process would extract these merge log messages from "git log --first-parent master" output for the batch, and I rearrange them into sections of RelNotes, while doing the final proofreading.

[Footnotes]
 *1* The Reintegrate script and the other files from the 'todo'
     branch of my git repository are checked out in an untracked
     Meta subdirectory of my primary working area for Git
     development.  It knows how to take topic descriptions from the
     draft of "What's cooking" (also checked out in Meta/) among
     other tricks.
 *2* Teaching "am" to do something useful with the cover letters is
     something I have been wanting to do for quite some time.  Ideas
     other than the topic description we are disussing here include
     allowing the patch submitter to pick a branch name for the
     topic and creating an empty commit at the tip (not the bottom)
     of the topic branch that records the contents of the cover
     letter.
Previous: Phillip Wood
Message 7 of 7 in “SubmittingPatches: release-notes entry experiment”
  1. SubmittingPatches: release-notes entry experimentJunio C Hamano, Mar 25, 2024
  2. Brian LylesMar 25, 2024
  3. Junio C HamanoMar 26, 2024
  4. Dragan SimicMar 26, 2024
  5. Dragan SimicMar 26, 2024
  6. Phillip WoodMar 26, 2024
  7. Junio C HamanoMar 26, 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.