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

Re: [PATCH] t9001: fix/unify indentation regarding pipes somewhat

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 9, 2023, 19:46 UTC
Message-ID
<xmqq350sm21v.fsf@gitster.g>
In-Reply-To
<20230809171531.2564769-1-oswald.buddenhagen@gmx.de>
Oswald Buddenhagen <oswald.buddenhagen@gmx.de> writes:
Show 9 quoted lines
> @@ -61,8 +61,8 @@ test_no_confirm () {
>  		--smtp-server="$(pwd)/fake.sendmail" \
>  		$@ \
>  		$patches >stdout &&
> -		! grep "Send this email" stdout &&
> -		>no_confirm_okay
> +	! grep "Send this email" stdout &&
> +	>no_confirm_okay
>  }
It is hard to see what is going on here, but ...
Show 6 quoted lines
> @@ -1197,7 +1197,7 @@ test_expect_success $PREREQ 'utf8 Cc is rfc2047 encoded' '
>  	--smtp-server="$(pwd)/fake.sendmail" \
>  	outdir/*.patch &&
>  	grep "^	" msgtxt1 |
> -	grep "=?UTF-8?q?=C3=A0=C3=A9=C3=AC=C3=B6=C3=BA?= <utf8@example.com>"
> +		grep "=?UTF-8?q?=C3=A0=C3=A9=C3=AC=C3=B6=C3=BA?= <utf8@example.com>"

... I do not think we want this. A long pipeline should be written without extra indentation like

	A |
		B |
			C
but more like
	A |
	B |
	C

If we do not have it in the coding guidelines document, perhaps we should add an entry for it.

Thanks.
Previous: Oswald BuddenhagenNext: Oswald Buddenhagen
Message 2 of 6 in “t9001: fix/unify indentation regarding pipes somewhat”
  1. t9001: fix/unify indentation regarding pipes somewhatOswald Buddenhagen, Aug 9, 2023
  2. Junio C HamanoAug 9, 2023
  3. Oswald BuddenhagenAug 10, 2023
  4. Junio C HamanoAug 10, 2023
  5. Oswald BuddenhagenAug 13, 2023
  6. t9001: fix indentation in test_no_confirm()Oswald Buddenhagen, Aug 13, 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.