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

Re: [PATCH 1/2] builtin/add: remove obsoleted support for legacy stash -p

From
Taylor Blau <me@ttaylorr.com>
Date
Aug 31, 2021, 00:33 UTC
Message-ID
<YS146dlPrxwF0dl6@nand.local>
In-Reply-To
<20210817064435.97625-2-carenas@gmail.com>
On Mon, Aug 16, 2021 at 11:44:34PM -0700, Carlo Marcelo Arenas Belón wrote:
Show 6 quoted lines
> 90a6bb98d1 (legacy stash -p: respect the add.interactive.usebuiltin
> setting, 2019-12-21) adds a hidden option and its supporting code
> to support the legacy stash script, but that was left behind when
> it was retired.
>
> mostly revert commit.

(Sorry for a much-delayed response, I'm trying to do a little bit of inbox-cleaning ;)).

If you're re-rolling based on Dscho's suggestions later on in the series, I'd suggest two changes to make the patch message clearer:

  - Clarify the antecedent of "it" in "it was retired". I find that
    "...but that [option] was forgotten about even when [the legacy
    stash implementation] was retired".
  - Link to the commit where we dropped support for that implementation
    (which was in 8a2cd3f512 (stash: remove the stash.useBuiltin
    setting, 2020-03-03)) to make it clear that that happened after
    90a6bb98d1.
  - Finally "mostly revert commit." should add more detail without being
    verbose. I'd write:
        Since 8a2cd3f512 removed the legacy implementation, the changes
        from 90a6bb98d1 are no longer necessary, so revert them.
Show 5 quoted lines
> @@ -483,6 +480,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
>  			  builtin_add_usage, PARSE_OPT_KEEP_ARGV0);
>  	if (patch_interactive)
>  		add_interactive = 1;
> +
Stray whitespace change, but the rest of the patch looks good to me.

Thanks, Taylor

Previous: Carlo Marcelo Arenas BelónNext: Carlo Marcelo Arenas Belón
Message 3 of 5 in “builtin/add: minor unrelated fixes”
  1. 0/2 builtin/add: minor unrelated fixesCarlo Marcelo Arenas Belón, Aug 17, 2021
  2. 1/2 builtin/add: remove obsoleted support for legacy stash -pCarlo Marcelo Arenas Belón, Aug 17, 2021
  3. Taylor BlauAug 31, 2021
  4. 2/2 builtin/add: make clear edit and patch/interactive are incompatibleCarlo Marcelo Arenas Belón, Aug 17, 2021
  5. Johannes SchindelinAug 17, 2021

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.