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

Re: [PATCH] submodule add: show 'add --dry-run' stderr when aborting

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 16, 2020, 20:23 UTC
Message-ID
<xmqqftgfgngw.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<nycvar.QRO.7.76.6.2001161711310.46@tvgsbejvaqbjf.bet>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 18 quoted lines
> I think this got mis-merged when merging down `km/submodule-add-errmsg`:
> it needs to be prefixed with `hint:` because of `hw/advice-add-nothing`,
> i.e.
>
> -- snipsnap --
> diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh
> index 42a00f95b9d..a6973a3003c 100755
> --- a/t/t7400-submodule-basic.sh
> +++ b/t/t7400-submodule-basic.sh
> @@ -158,7 +158,7 @@ test_expect_success 'submodule add to .gitignored path fails' '
>  		cat <<-\EOF >expect &&
>  		The following paths are ignored by one of your .gitignore files:
>  		submod
> -		Use -f if you really want to add them.
> +		hint: Use -f if you really want to add them.
>  		EOF
>  		# Does not use test_commit due to the ignore
>  		echo "*" > .gitignore &&
Thanks, will prepare merge-fix material for this.
Previous: Johannes Schindelin
Message 5 of 5 in “submodule add: show 'add --dry-run' stderr when aborting”
  1. submodule add: show 'add --dry-run' stderr when abortingKyle Meyer, Jan 8, 2020
  2. Josh SteadmonJan 8, 2020
  3. Kyle MeyerJan 9, 2020
  4. Johannes SchindelinJan 16, 2020
  5. Junio C HamanoJan 16, 2020

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.