Skip to contentSkip to conversation

attr.h: remove duplicate struct definition

PATCH In review Elia Pinto 2 participants 4 messages Mar 14, 2022

lore
Share & tools
lore

Elia Pinto

author
#0 lore raw

PATCH 6/6 attr.h: remove duplicate struct definition

struct index_state is declared more than once.

---
 attr.h | 1 -
 1 file changed, 1 deletion(-)
attr.h +0 -1
index 3732505eda..3fb40cced0 100644
@@ -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
Signature · 1 line
2.35.1
#1 lore raw
Quoted 1 line · Elia Pinto

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 <[email protected]> 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.

Quoted 19 lines

struct index_state is declared more than once.

---
 attr.h | 1 -
 1 file changed, 1 deletion(-)
attr.h +0 -1
index 3732505eda..3fb40cced0 100644
@@ -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
author
#2 lore raw

Il giorno lun 14 mar 2022 alle ore 06:40 Junio C Hamano <[email protected]> ha scritto:

Quoted 6 lines
Quoted 1 line · Elia Pinto

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

Quoted 38 lines

If this is a leftover bit follow-up to the 5-patch series whose cover letter was <[email protected]> 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.

Quoted 19 lines

struct index_state is declared more than once.

---
 attr.h | 1 -
 1 file changed, 1 deletion(-)
attr.h +0 -1
index 3732505eda..3fb40cced0 100644
@@ -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
#3 lore raw
Quoted 5 lines · Elia Pinto

Il giorno lun 14 mar 2022 alle ore 06:40 Junio C Hamano <[email protected]> ha scritto:

Quoted 3 lines

Elia Pinto <[email protected]> writes:

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

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.