~rjarry/aerc-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
3 3

[PATCH aerc] sendemail-validate: add fallback for older git

Details
Message ID
<20240310163459.64629-2-robin@jarry.cc>
DKIM signature
pass
Download raw message
Patch: +3 -1
Before version 2.41, the sendemail-validate script can only be used to
validate patches one by one, even when sending patch series.

Set both GIT_SENDEMAIL_FILE_{COUNTER,TOTAL} to 1 in case they are not
defined to avoid obscure errors. At least with older git versions,
single patch validation should be possible.

Signed-off-by: Robin Jarry <robin@jarry.cc>
---
 contrib/sendemail-validate | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/sendemail-validate b/contrib/sendemail-validate
index 8f0af2d54ad0..7603111573dc 100755
--- a/contrib/sendemail-validate
+++ b/contrib/sendemail-validate
@@ -35,7 +35,9 @@ validate_series () {
	$make validate
}

# main -------------------------------------------------------------------------
# fallback for git 2.40 and older
: ${GIT_SENDEMAIL_FILE_COUNTER:=1}
: ${GIT_SENDEMAIL_FILE_TOTAL:=1}

if test "$GIT_SENDEMAIL_FILE_COUNTER" = 1
then
-- 
2.44.0

[aerc/patches] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CZQ7UGA9IRNT.2E8J2DD3IDG49@fra02>
In-Reply-To
<20240310163459.64629-2-robin@jarry.cc> (view parent)
DKIM signature
missing
Download raw message
aerc/patches: SUCCESS in 2m26s

[sendemail-validate: add fallback for older git][0] from [Robin Jarry][1]

[0]: https://lists.sr.ht/~rjarry/aerc-devel/patches/50118
[1]: robin@jarry.cc

✓ #1165727 SUCCESS aerc/patches/alpine-edge.yml https://builds.sr.ht/~rjarry/job/1165727
✓ #1165728 SUCCESS aerc/patches/openbsd.yml     https://builds.sr.ht/~rjarry/job/1165728
Details
Message ID
<D0J9HMEIPZKM.1ZRG0AN7D7CCB@ferdinandy.com>
In-Reply-To
<20240310163459.64629-2-robin@jarry.cc> (view parent)
DKIM signature
missing
Download raw message
On Sun Mar 10, 2024 at 17:35, Robin Jarry <robin@jarry.cc> wrote:
> Before version 2.41, the sendemail-validate script can only be used to
> validate patches one by one, even when sending patch series.
>
> Set both GIT_SENDEMAIL_FILE_{COUNTER,TOTAL} to 1 in case they are not
> defined to avoid obscure errors. At least with older git versions,
> single patch validation should be possible.
>
> Signed-off-by: Robin Jarry <robin@jarry.cc>
> ---
>  contrib/sendemail-validate | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/contrib/sendemail-validate b/contrib/sendemail-validate
> index 8f0af2d54ad0..7603111573dc 100755
> --- a/contrib/sendemail-validate
> +++ b/contrib/sendemail-validate
> @@ -35,7 +35,9 @@ validate_series () {
>  	$make validate
>  }
>  
> -# main -------------------------------------------------------------------------
> +# fallback for git 2.40 and older
> +: ${GIT_SENDEMAIL_FILE_COUNTER:=1}
> +: ${GIT_SENDEMAIL_FILE_TOTAL:=1}
>  
>  if test "$GIT_SENDEMAIL_FILE_COUNTER" = 1
>  then

LGTM

Reviewed-by: Bence Ferdinandy <bence@ferdinandy.com>


-- 
+36305425054
bence.ferdinandy.com
Details
Message ID
<D0JA8OBB28A3.3LNQ2K7XLGHZ@ringo>
In-Reply-To
<D0J9HMEIPZKM.1ZRG0AN7D7CCB@ferdinandy.com> (view parent)
DKIM signature
pass
Download raw message
Bence Ferdinandy, Apr 13, 2024 at 22:03:
>
> On Sun Mar 10, 2024 at 17:35, Robin Jarry <robin@jarry.cc> wrote:
> > Before version 2.41, the sendemail-validate script can only be used to
> > validate patches one by one, even when sending patch series.
> >
> > Set both GIT_SENDEMAIL_FILE_{COUNTER,TOTAL} to 1 in case they are not
> > defined to avoid obscure errors. At least with older git versions,
> > single patch validation should be possible.
> >
> > Signed-off-by: Robin Jarry <robin@jarry.cc>
> > ---
> >  contrib/sendemail-validate | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/contrib/sendemail-validate b/contrib/sendemail-validate
> > index 8f0af2d54ad0..7603111573dc 100755
> > --- a/contrib/sendemail-validate
> > +++ b/contrib/sendemail-validate
> > @@ -35,7 +35,9 @@ validate_series () {
> >  	$make validate
> >  }
> >  
> > -# main -------------------------------------------------------------------------
> > +# fallback for git 2.40 and older
> > +: ${GIT_SENDEMAIL_FILE_COUNTER:=1}
> > +: ${GIT_SENDEMAIL_FILE_TOTAL:=1}
> >  
> >  if test "$GIT_SENDEMAIL_FILE_COUNTER" = 1
> >  then
>
> LGTM
>
> Reviewed-by: Bence Ferdinandy <bence@ferdinandy.com>

Applied. Thanks!
Reply to thread Export thread (mbox)