git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 6/6] attr.h: remove duplicate struct definition
@ 2022-03-14  0:23 Elia Pinto
  2022-03-14  5:40 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Elia Pinto @ 2022-03-14  0:23 UTC (permalink / raw)
  To: git; +Cc: Elia Pinto

struct index_state is declared more than once.

Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
---
 attr.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/attr.h b/attr.h
index 3732505eda..3fb40cced0 100644
--- a/attr.h
+++ b/attr.h
@@ -121,7 +121,6 @@ struct git_attr;
 /* opaque structures used internally for attribute collection */
 struct all_attrs_item;
 struct attr_stack;
-struct index_state;
 
 /*
  * Given a string, return the gitattribute object that
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 6/6] attr.h: remove duplicate struct definition
  2022-03-14  0:23 [PATCH 6/6] attr.h: remove duplicate struct definition Elia Pinto
@ 2022-03-14  5:40 ` Junio C Hamano
  2022-03-14 10:39   ` Elia Pinto
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2022-03-14  5:40 UTC (permalink / raw)
  To: Elia Pinto; +Cc: git

Elia Pinto <gitter.spiros@gmail.com> writes:

> Subject: Re: [PATCH 6/6] attr.h: remove duplicate struct definition

I do not see other 5 from 1/6 thru 5/6 on the list.

If this is a leftover bit follow-up to the 5-patch series whose
cover letter was <20220313195536.224075-1-gitter.spiros@gmail.com>
we often see such a message

 - with subject numbered as [PATCH 6/5]
 - as follow-up to the same cover letter.

The patch text looks good, and we can see from the output of

 $ git grep '^struct .*;' \*.h |
   sort | uniq -c | sort -n | grep -v '^ *1 '

that this is the only duplicated opaque struct declaration in the
header files.

For now, I'd assume that is the case and queue it on the same topic
branch as the other five.  Thanks.

> struct index_state is declared more than once.
>
> Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
> ---
>  attr.h | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/attr.h b/attr.h
> index 3732505eda..3fb40cced0 100644
> --- a/attr.h
> +++ b/attr.h
> @@ -121,7 +121,6 @@ struct git_attr;
>  /* opaque structures used internally for attribute collection */
>  struct all_attrs_item;
>  struct attr_stack;
> -struct index_state;
>  
>  /*
>   * Given a string, return the gitattribute object that

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 6/6] attr.h: remove duplicate struct definition
  2022-03-14  5:40 ` Junio C Hamano
@ 2022-03-14 10:39   ` Elia Pinto
  2022-03-14 21:45     ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Elia Pinto @ 2022-03-14 10:39 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Il giorno lun 14 mar 2022 alle ore 06:40 Junio C Hamano
<gitster@pobox.com> ha scritto:
>
> Elia Pinto <gitter.spiros@gmail.com> writes:
>
> > Subject: Re: [PATCH 6/6] attr.h: remove duplicate struct definition
>
> I do not see other 5 from 1/6 thru 5/6 on the list.
I'm sorry. It was my mistake in producing the patch. There are no
other cases like this.

Thanks for your patience
>
> If this is a leftover bit follow-up to the 5-patch series whose
> cover letter was <20220313195536.224075-1-gitter.spiros@gmail.com>
> we often see such a message
>
>  - with subject numbered as [PATCH 6/5]
>  - as follow-up to the same cover letter.
>
> The patch text looks good, and we can see from the output of
>
>  $ git grep '^struct .*;' \*.h |
>    sort | uniq -c | sort -n | grep -v '^ *1 '
>
> that this is the only duplicated opaque struct declaration in the
> header files.
>
> For now, I'd assume that is the case and queue it on the same topic
> branch as the other five.  Thanks.
>
> > struct index_state is declared more than once.
> >
> > Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
> > ---
> >  attr.h | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/attr.h b/attr.h
> > index 3732505eda..3fb40cced0 100644
> > --- a/attr.h
> > +++ b/attr.h
> > @@ -121,7 +121,6 @@ struct git_attr;
> >  /* opaque structures used internally for attribute collection */
> >  struct all_attrs_item;
> >  struct attr_stack;
> > -struct index_state;
> >
> >  /*
> >   * Given a string, return the gitattribute object that

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 6/6] attr.h: remove duplicate struct definition
  2022-03-14 10:39   ` Elia Pinto
@ 2022-03-14 21:45     ` Junio C Hamano
  0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2022-03-14 21:45 UTC (permalink / raw)
  To: Elia Pinto; +Cc: git

Elia Pinto <gitter.spiros@gmail.com> writes:

> Il giorno lun 14 mar 2022 alle ore 06:40 Junio C Hamano
> <gitster@pobox.com> ha scritto:
>>
>> Elia Pinto <gitter.spiros@gmail.com> writes:
>>
>> > Subject: Re: [PATCH 6/6] attr.h: remove duplicate struct definition
>>
>> I do not see other 5 from 1/6 thru 5/6 on the list.
> I'm sorry. It was my mistake in producing the patch. There are no
> other cases like this.
>
> Thanks for your patience

No need to say sorry!  I just wanted to make sure I have all pieces
necessary.

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-14 21:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-14  0:23 [PATCH 6/6] attr.h: remove duplicate struct definition Elia Pinto
2022-03-14  5:40 ` Junio C Hamano
2022-03-14 10:39   ` Elia Pinto
2022-03-14 21:45     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).