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 git submodule status & lt; commit & gt; (sadly that the option does not exist, at least 1.9.7.5) wants to be able to

I can think two options; None of them looks beautiful:

  1. git submodule summary -n 1 commit ; Then parse the output and remove the differences in the submodules with the git submodule status

  2. 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 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

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -