Skip to contentSkip to conversation

vcs-svn/repo_tree.h: remove repo_init declaration

PATCH In review Stefan Beller 3 participants 6 messages Aug 22, 2017 – Aug 23, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vcs-svn/repo_tree.h: remove repo_init declaration

The svn specific declaration of repo_init was not used since 723b7a2789 (vcs-svn: eliminate repo_tree structure, 2010-12-10).

This was noticed when including repository.h via cache.h as that has the same function with a different signature.

---
 vcs-svn/repo_tree.h | 1 -
 1 file changed, 1 deletion(-)
vcs-svn/repo_tree.h +0 -1
index 889c6a3c95..8592beb59b 100644
@@ -17,7 +17,6 @@ void repo_commit(uint32_t revision, const char *author,
 		const struct strbuf *log, const char *uuid, const char *url,
 		long unsigned timestamp);
 void repo_diff(uint32_t r1, uint32_t r2);
-void repo_init(void);
 void repo_reset(void);
 
 #endif
Signature · 1 line
2.14.0.rc0.3.g6c2e499285
#1 lore raw
Quoted 9 lines · Stefan Beller

The svn specific declaration of repo_init was not used since 723b7a2789 (vcs-svn: eliminate repo_tree structure, 2010-12-10).

This was noticed when including repository.h via cache.h as that has the same function with a different signature.

---

It looks to me that this is a reduced duplicate of what brian posted yesterday. The first two patches in the 6-patch series that you commented on, I think, covers what this change wants to achieve and probably a lot more. I've merged those two already to 'next' and was about to push the result out.

Thanks.

Quoted 15 lines
 vcs-svn/repo_tree.h | 1 -
 1 file changed, 1 deletion(-)
vcs-svn/repo_tree.h +0 -1
index 889c6a3c95..8592beb59b 100644
@@ -17,7 +17,6 @@ void repo_commit(uint32_t revision, const char *author,
 		const struct strbuf *log, const char *uuid, const char *url,
 		long unsigned timestamp);
 void repo_diff(uint32_t r1, uint32_t r2);
-void repo_init(void);
 void repo_reset(void);
 
 #endif
#2 lore raw
Quoted 13 lines · Junio C Hamano
Quoted 9 lines · Stefan Beller

The svn specific declaration of repo_init was not used since 723b7a2789 (vcs-svn: eliminate repo_tree structure, 2010-12-10).

This was noticed when including repository.h via cache.h as that has the same function with a different signature.

---

Quoted 8 lines

It looks to me that this is a reduced duplicate of what brian posted yesterday. The first two patches in the 6-patch series that you commented on, I think, covers what this change wants to achieve and probably a lot more. I've merged those two already to 'next' and was about to push the result out.

Thanks.

Ok, thanks. I did not remember reviewing those. (I just wanted to fix my odd compile error here, and currently I build a series on top of jt/packmigrate so I shot off a quick one liner)

Sorry for the noise.

#3 lore raw
In reply to Junio C Hamano
Quoted 8 lines · Junio C Hamano
Quoted 6 lines · Stefan Beller

The svn specific declaration of repo_init was not used since 723b7a2789 (vcs-svn: eliminate repo_tree structure, 2010-12-10).

This was noticed when including repository.h via cache.h as that has the same function with a different signature.

Quoted 8 lines
Quoted 2 lines

It looks to me that this is a reduced duplicate of what brian posted yesterday. The first two patches in the 6-patch series that you commented on, I think, covers what this change wants to achieve and probably a lot more. I've merged those two already to 'next' and was about to push the result out.

Thanks for the pointer. I believe you're referring to
https://public-inbox.org/git/[email protected]/.

From Stefan's verbal report I was about to send a patch just like Brian's plus some more patches on top to get rid of the rest of repo_tree.h. I can build on top of Brian's patch if that's more convenient.

Regards,
Jonathan

#4 lore raw
In reply to Junio C Hamano
Quoted 12 lines · Junio C Hamano
Quoted 9 lines · Stefan Beller

The svn specific declaration of repo_init was not used since 723b7a2789 (vcs-svn: eliminate repo_tree structure, 2010-12-10).

This was noticed when including repository.h via cache.h as that has the same function with a different signature.

---

Quoted 5 lines

It looks to me that this is a reduced duplicate of what brian posted yesterday. The first two patches in the 6-patch series that you commented on, I think, covers what this change wants to achieve and probably a lot more. I've merged those two already to 'next' and was about to push the result out.

I just sent
https://public-inbox.org/git/[email protected]/
to fix this more thoroughly. I can rebase on top of bc/vcs-svn-cleanup if that is helpful --- just say the word.

Thanks,
Jonathan

#5 lore raw
Quoted 8 lines · Jonathan Nieder

Junio C Hamano wrote:
...

Quoted 5 lines

It looks to me that this is a reduced duplicate of what brian posted yesterday. The first two patches in the 6-patch series that you commented on, I think, covers what this change wants to achieve and probably a lot more. I've merged those two already to 'next' and was about to push the result out.

Quoted 4 lines

I just sent
https://public-inbox.org/git/[email protected]/
to fix this more thoroughly. I can rebase on top of bc/vcs-svn-cleanup if that is helpful --- just say the word.

Yup, as I merged those two preliminary clean-up separately to 'next' already, it would be more efficient to build on top. I do not know what you are planning with the other patches (I only saw Stefan's one, not your series) so do not yet have suggestion on how to work well with Brian's series that builds on his two clean-up patches. Hopefully they are orthogonal?

Thanks.