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

Re: [PATCH v2] name-rev: make --stdin hidden

From
Eric Sunshine <sunshine@sunshineco.com>
Date
May 5, 2023, 19:31 UTC
Message-ID
<CAPig+cRRyMBQCiS7v0B1J+PSJFVVR++oOssrW7M3xwXS-2_jwQ@mail.gmail.com>
In-Reply-To
<pull.1225.v2.git.git.1683314270964.gitgitgadget@gmail.com>

On Fri, May 5, 2023 at 3:19 PM John Cai via GitGitGadget <gitgitgadget@gmail.com> wrote:

Show 7 quoted lines
> In 34ae3b70 (name-rev: deprecate --stdin in favor of --annotate-stdin),
> we renamed --stdin to --annotate-stdin for the sake of a clearer name
> for the option, and added text that indicates --stdin is deprecated. The
> next step is to hide --stdin completely.
>
> Make the option hidden. Also, update documentation to remove all
> mentions of --stdin.

Eradicating all mention of --stdin from the documentation makes it more hostile for end-users, doesn't it? If someone runs across --stdin in a blog post or in some in-the-wild script, then this makes it more difficult to learn what the option does. In other such cases, rather than purging all mention from documentation, we've instead mentioned the deprecated option only as a minor aside of the option which replaces it. For instance:

    --annotate-stdin::
        Transform stdin by ... omitting $hex altogether.
        `--stdin` is a deprecated synonym.
> Signed-off-by: "John Cai" <johncai86@gmail.com>
Previous: John Cai via GitGitGadgetNext: Junio C Hamano
Message 5 of 9 in “name-rev: make --stdin hidden”
  1. name-rev: make --stdin hiddenJohn Cai via GitGitGadget, Mar 8, 2022
  2. Junio C HamanoMar 9, 2022
  3. John CaiMar 9, 2022
  4. name-rev: make --stdin hiddenJohn Cai via GitGitGadget, May 5, 2023
  5. Eric SunshineMay 5, 2023
  6. Junio C HamanoMay 5, 2023
  7. John CaiMay 5, 2023
  8. name-rev: make --stdin hiddenJohn Cai via GitGitGadget, May 6, 2023
  9. name-rev: make --stdin hiddenTeng Long, May 6, 2023

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.