java - How to find specific branch details only using version of the jar? - Stack Overflow

admin2025-04-16  6

I have a Spring Boot project that is getting model data from a different Java library project. Someone added changes to the Java library and added that version to the main Spring Boot project, but forgot to merge the library changes to the main branch of the library.

Later, they forgot the branch details and the library has a lot of branches. Is there any way to find related library branch details only using the bundled Java library JAR file version?

I have a Spring Boot project that is getting model data from a different Java library project. Someone added changes to the Java library and added that version to the main Spring Boot project, but forgot to merge the library changes to the main branch of the library.

Later, they forgot the branch details and the library has a lot of branches. Is there any way to find related library branch details only using the bundled Java library JAR file version?

Share Improve this question edited Feb 3 at 9:19 Mark Rotteveel 110k229 gold badges156 silver badges224 bronze badges asked Feb 3 at 8:55 Manoj MadushankaManoj Madushanka 4613 gold badges9 silver badges23 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I found the way to do it using below command.

git grep -n "[my-lib-version]" $(git for-each-ref --format="%(refname:short)" refs/remotes/origin/)

replace my-lib-version with your jar file version

转载请注明原文地址:http://anycun.com/QandA/1744773812a87429.html