{"thread":{"id":"55536","subject":"The meaning of the '+' before the submodule hash.","startedAt":"2021-04-21T14:19:40Z","lastAt":"2021-04-21T14:37:12Z","messageCount":3,"participants":["Hongyi Zhao","Taylor Blau"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"422587","messageId":"CAGP6PO+6MA9J1LRgGn4rcz8DBcW-hht92p-ahFaM9g6tcNFh-Q@mail.gmail.com","threadId":"55536","inReplyTo":null,"subject":"The meaning of the '+' before the submodule hash.","fromName":"Hongyi Zhao","fromEmail":"hongyi.zhao@gmail.com","sentAt":"2021-04-21T14:19:25Z","receivedAt":"2021-04-21T14:19:40Z","isPatch":false,"sender":{"key":"hongyi.zhao@gmail.com","avatar":null},"body":"Hi,\n\nSee the following output given below by `git submodule status`:\n\n$ git submodule status\n+c7b9787f0b7826a87f07ce00cbfe4947b8521101 external/devxlib (heads/master)\n d0197c76ae76bbf4d3fed20444fac31af550069d external/eigensolver_gpu\n(v0.3.1-7-gd0197c7)\n+6fef49bcfc4a380432f15734ed0ca1f0b0388977 external/fox (4.1.2-89-g6fef49b)\n+4b3c7c249f6a2cfed76603d9987cf5164fa6f9e1 external/lapack\n(v3.7.0-1026-g4b3c7c249)\n+2899044d2a6828aa16e0189913662bc35ce8f645 external/mbd (0.12.1-43-g2899044)\n+2b9973c12e85397fa9564370f6cced16f8428834 external/wannier90\n(v3.1.0-35-g2b9973c)\n\nWhat's the meaning of the '+' sign at the beginning? Why do some\nsubmodules have this symbol, but some submodules don't?\n\nRegards\n-- \nAssoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>\nTheory and Simulation of Materials\nHebei Polytechnic University of Science and Technology engineering\nNO. 552 North Gangtie Road, Xingtai, China\n"},{"id":"422588","messageId":"YIA10O/BVrP3z/LK@nand.local","threadId":"55536","inReplyTo":"CAGP6PO+6MA9J1LRgGn4rcz8DBcW-hht92p-ahFaM9g6tcNFh-Q@mail.gmail.com","subject":"Re: The meaning of the '+' before the submodule hash.","fromName":"Taylor Blau","fromEmail":"me@ttaylorr.com","sentAt":"2021-04-21T14:25:20Z","receivedAt":"2021-04-21T14:25:28Z","isPatch":false,"sender":{"key":"me@ttaylorr.com","avatar":"https://avatars.githubusercontent.com/u/301000140?v=4"},"body":"On Wed, Apr 21, 2021 at 10:19:25PM +0800, Hongyi Zhao wrote:\n> What's the meaning of the '+' sign at the beginning? Why do some\n> submodules have this symbol, but some submodules don't?\n\nThere are three symbols, 'U', '-', and '+'. From the documentation [1],\nthey mean:\n\n    Each SHA-1 will possibly be prefixed with `-` if the submodule is not\n    initialized, `+` if the currently checked out submodule commit does not\n    match the SHA-1 found in the index of the containing repository and `U`\n    if the submodule has merge conflicts.\n\n[1]: https://git-scm.com/docs/git-submodule#Documentation/git-submodule.txt-status--cached--recursive--ltpathgt82308203\n\nThanks,\nTaylor\n"},{"id":"422589","messageId":"CAGP6POKTTBfrtsXEKi2P+xg0DLPNzo4+jRY+ySmJ0wOQFPdZpw@mail.gmail.com","threadId":"55536","inReplyTo":"YIA10O/BVrP3z/LK@nand.local","subject":"Re: The meaning of the '+' before the submodule hash.","fromName":"Hongyi Zhao","fromEmail":"hongyi.zhao@gmail.com","sentAt":"2021-04-21T14:36:55Z","receivedAt":"2021-04-21T14:37:12Z","isPatch":false,"sender":{"key":"hongyi.zhao@gmail.com","avatar":null},"body":"On Wed, Apr 21, 2021 at 10:25 PM Taylor Blau <me@ttaylorr.com> wrote:\n>\n> On Wed, Apr 21, 2021 at 10:19:25PM +0800, Hongyi Zhao wrote:\n> > What's the meaning of the '+' sign at the beginning? Why do some\n> > submodules have this symbol, but some submodules don't?\n>\n> There are three symbols, 'U', '-', and '+'. From the documentation [1],\n> they mean:\n>\n>     Each SHA-1 will possibly be prefixed with `-` if the submodule is not\n>     initialized, `+` if the currently checked out submodule commit does not\n>     match the SHA-1 found in the index of the containing repository and `U`\n>     if the submodule has merge conflicts.\n>\n> [1]: https://git-scm.com/docs/git-submodule#Documentation/git-submodule.txt-status--cached--recursive--ltpathgt82308203\n\nThank you very much for pointing out this document information to me.\nThe above submodules status for my case were achieved by the following\ncommand:\n\n$ git submodule update --init --recursive --remote\n\nAs you can see, this will cause the status denoted by '+', i.e., the\ncurrently checked out submodule commit does not match the SHA-1 found\nin the index of the containing repository. I'm not sure if this is\nharmful.\n\nHY\n\n> Thanks,\n> Taylor\n\n\n\n-- \nAssoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>\nTheory and Simulation of Materials\nHebei Polytechnic University of Science and Technology engineering\nNO. 552 North Gangtie Road, Xingtai, China\n"}]}