git - How to know submodules in a branch without checking it out -
Is there any programmatic way to know which exists in a non-check-out commitment? Basically, I used the I can think two options; None of them looks beautiful: Get the contents of the file ".gitmodules" on that particular commit , And then parse it Any simple solution? should do some work like this: git submodule status & lt; commit & gt; (sadly that the option does not exist, at least 1.9.7.5) wants to be able to
git submodule summary -n 1 commit ; Then parse the output and remove the differences in the submodules with the
git submodule status
git ls- Tree -r & lt; Commit & gt; | However, it only tells you where the subdue is connected and should be aware of this commitment. If you want to get the URL or other information, then you will probably have to parse the
.gitmodules file with that promise, as you have mentioned.
Comments
Post a Comment