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
Kyle Meyer <kyle@kyleam.com>
Date
Jan 9, 2020, 02:39 UTC
Message-ID
<87d0btwdya.fsf@kyleam.com>
In-Reply-To
<20200108214136.GB63040@google.com>
Josh Steadmon <steadmon@google.com> writes:
> On 2020.01.07 19:31, Kyle Meyer wrote:
[...]
Show 5 quoted lines
>> +test_expect_success 'submodule add relays add --dry-run stderr' '
>> +	test_when_finished "rm -rf addtest/.git/index.lock" &&
>> +	(
>> +		cd addtest &&
>> +		: >.git/index.lock &&
[...]
> I had to look up what ":" does, but it looks like it's reasonably widely
> used in other tests so that seems fine. However, it looks like you don't
> even need the : command and can just ">.git/index.lock" by itself (see
> the "setup - initial commit" test case in this file for an example).

Indeed. I spot some recent commits that added new instances of ": >", so I suspect it's not strongly discouraged in this project, but I'm not particularly attached to the unneeded colon :>

> Looks good to me. Thanks for the patch!
Thanks for the review!
Previous: Josh SteadmonNext: Johannes Schindelin
Message 3 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.