# [PATCH] t1016: clean up style

5 messages from 2024-10-20 to 2024-10-22. Participants: Andrew Kreimer, Kristoffer Haugsbakk, Taylor Blau.
Thread: https://gitlist.dev/t/62372

## Andrew Kreimer, 2024-10-20 12:17

Subject: [PATCH] t1016: clean up style
Message-ID: <20241020121729.27032-1-algonell@gmail.com>
URL: https://gitlist.dev/e/20241020121729.27032-1-algonell%40gmail.com

```
Use `test_config`.

Remove whitespace after redirect operator.

Reported-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Andrew Kreimer <algonell@gmail.com>
---
As discussed in:
  - https://lore.kernel.org/git/ZxFyKXDCJkRZYYQY@nand.local/

Tested:
  - ubuntu-latest, GitHub Actions.

 t/t1016-compatObjectFormat.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/t1016-compatObjectFormat.sh b/t/t1016-compatObjectFormat.sh
index be3206a16f..0cc62d2a2d 100755
--- a/t/t1016-compatObjectFormat.sh
+++ b/t/t1016-compatObjectFormat.sh
@@ -116,8 +116,8 @@ do
 		git config core.repositoryformatversion 1 &&
 		git config extensions.objectformat $hash &&
 		git config extensions.compatobjectformat $(compat_hash $hash) &&
-		git config gpg.program $TEST_DIRECTORY/t1016/gpg &&
-		echo "Hellow World!" > hello &&
+		test_config gpg.program $TEST_DIRECTORY/t1016/gpg &&
+		echo "Hellow World!" >hello &&
 		eval hello_${hash}_oid=$(git hash-object hello) &&
 		git update-index --add hello &&
 		git commit -m "Initial commit" &&
-- 
2.39.5


```

## Kristoffer Haugsbakk, 2024-10-20 12:46

Subject: Re: [PATCH] t1016: clean up style
Message-ID: <98c5e44f-42c9-47c7-9fa1-e6cc3b35cdb4@app.fastmail.com>
URL: https://gitlist.dev/e/98c5e44f-42c9-47c7-9fa1-e6cc3b35cdb4%40app.fastmail.com
In-Reply-To: <20241020121729.27032-1-algonell@gmail.com>

```
Hi

On Sun, Oct 20, 2024, at 14:17, Andrew Kreimer wrote:
> Use `test_config`.
>
> Remove whitespace after redirect operator.
>
> Reported-by: Taylor Blau <me@ttaylorr.com>
> Signed-off-by: Andrew Kreimer <algonell@gmail.com>
> ---
> As discussed in:
>   - https://lore.kernel.org/git/ZxFyKXDCJkRZYYQY@nand.local/
> […]
> -		git config gpg.program $TEST_DIRECTORY/t1016/gpg &&
> -		echo "Hellow World!" > hello &&
> +		test_config gpg.program $TEST_DIRECTORY/t1016/gpg &&
> +		echo "Hellow World!" >hello &&

What Taylor wrote:

> Thanks, both. [Andrew] -- it's fine to do this in the same, or a
> separate patch in the new round. Thanks.

You’ve posted a new, standalone patch.  But what Taylor asked for was a
new round on that typo patch where you either squash these changes into
the original patch or have the typo patch plus this one.

At least that’s how I understand it.

This patch by itself doesn’t do much since the file is full of this
style violation.  Which I now realize is what you meant when you
asked:[1]

> Do you mean that '> more' and '> another' should be handled similarly?

You were referring to other style violations in the file.  But I only
looked at the email so I didn’t catch that.

🔗 1: https://lore.kernel.org/git/ZxKSFBl_pV2r99dY@void.void/

```

## Taylor Blau, 2024-10-21 21:45

Subject: Re: [PATCH] t1016: clean up style
Message-ID: <ZxbLlA0xbuhP7DJK@nand.local>
URL: https://gitlist.dev/e/ZxbLlA0xbuhP7DJK%40nand.local
In-Reply-To: <98c5e44f-42c9-47c7-9fa1-e6cc3b35cdb4@app.fastmail.com>

```
On Sun, Oct 20, 2024 at 02:46:18PM +0200, Kristoffer Haugsbakk wrote:
> Hi
>
> On Sun, Oct 20, 2024, at 14:17, Andrew Kreimer wrote:
> > Use `test_config`.
> >
> > Remove whitespace after redirect operator.
> >
> > Reported-by: Taylor Blau <me@ttaylorr.com>
> > Signed-off-by: Andrew Kreimer <algonell@gmail.com>
> > ---
> > As discussed in:
> >   - https://lore.kernel.org/git/ZxFyKXDCJkRZYYQY@nand.local/
> > […]
> > -		git config gpg.program $TEST_DIRECTORY/t1016/gpg &&
> > -		echo "Hellow World!" > hello &&
> > +		test_config gpg.program $TEST_DIRECTORY/t1016/gpg &&
> > +		echo "Hellow World!" >hello &&
>
> What Taylor wrote:
>
> > Thanks, both. [Andrew] -- it's fine to do this in the same, or a
> > separate patch in the new round. Thanks.
>
> You’ve posted a new, standalone patch.  But what Taylor asked for was a
> new round on that typo patch where you either squash these changes into
> the original patch or have the typo patch plus this one.
>
> At least that’s how I understand it.

I said originally that either was fine, but then revised my statement
after remembering that the original topic was already in 'next', so any
further changes would have to be done on top.

Thanks,
Taylor

```

## Taylor Blau, 2024-10-21 21:48

Subject: Re: [PATCH] t1016: clean up style
Message-ID: <ZxbMFQSL1brz86f+@nand.local>
URL: https://gitlist.dev/e/ZxbMFQSL1brz86f%2B%40nand.local
In-Reply-To: <ZxbLlA0xbuhP7DJK@nand.local>

```
On Mon, Oct 21, 2024 at 05:45:56PM -0400, Taylor Blau wrote:
> On Sun, Oct 20, 2024 at 02:46:18PM +0200, Kristoffer Haugsbakk wrote:
> > Hi
> >
> > On Sun, Oct 20, 2024, at 14:17, Andrew Kreimer wrote:
> > > Use `test_config`.
> > >
> > > Remove whitespace after redirect operator.
> > >
> > > Reported-by: Taylor Blau <me@ttaylorr.com>
> > > Signed-off-by: Andrew Kreimer <algonell@gmail.com>
> > > ---
> > > As discussed in:
> > >   - https://lore.kernel.org/git/ZxFyKXDCJkRZYYQY@nand.local/
> > > […]
> > > -		git config gpg.program $TEST_DIRECTORY/t1016/gpg &&
> > > -		echo "Hellow World!" > hello &&
> > > +		test_config gpg.program $TEST_DIRECTORY/t1016/gpg &&
> > > +		echo "Hellow World!" >hello &&
> >
> > What Taylor wrote:
> >
> > > Thanks, both. [Andrew] -- it's fine to do this in the same, or a
> > > separate patch in the new round. Thanks.
> >
> > You’ve posted a new, standalone patch.  But what Taylor asked for was a
> > new round on that typo patch where you either squash these changes into
> > the original patch or have the typo patch plus this one.
> >
> > At least that’s how I understand it.
>
> I said originally that either was fine, but then revised my statement
> after remembering that the original topic was already in 'next', so any
> further changes would have to be done on top.

...but after queueing, this patch does not apply cleanly on ak/typofix,
which is what this patch should be based on AFAICT.

Andrew, would you please send a version based on the aforementioned
topic?

Thanks,
Taylor

```

## Andrew Kreimer, 2024-10-22 10:29

Subject: Re: [PATCH] t1016: clean up style
Message-ID: <Zxd-jynYyT2j6blH@void.void>
URL: https://gitlist.dev/e/Zxd-jynYyT2j6blH%40void.void
In-Reply-To: <ZxbMFQSL1brz86f+@nand.local>

```
On Mon, Oct 21, 2024 at 05:48:05PM -0400, Taylor Blau wrote:
> ...but after queueing, this patch does not apply cleanly on ak/typofix,
> which is what this patch should be based on AFAICT.
> 
> Andrew, would you please send a version based on the aforementioned
> topic?
> 
> Thanks,
> Taylor

Absolutely, thank you both for the clarification.

```
