{"thread":{"id":"47110","subject":"submodule using revision","startedAt":"2017-11-03T13:42:30Z","lastAt":"2017-11-03T20:26:27Z","messageCount":2,"participants":["gregory grey","Jacob Keller"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"331777","messageId":"CACYWVif=zSiXpqVL0td+Mgu-Wz=AzDL50kREcXJY2Dtf_4_y_g@mail.gmail.com","threadId":"47110","inReplyTo":null,"subject":"submodule using revision","fromName":"gregory grey","fromEmail":"ror6ax@gmail.com","sentAt":"2017-11-03T13:42:23Z","receivedAt":"2017-11-03T13:42:30Z","isPatch":false,"sender":{"key":"ror6ax@gmail.com","avatar":null},"body":"Hi guys.\n\nCurrently git submodule only works with branch of the submodule in\nquestion. Adding a functionality to work with a revision would be\ngreat from my point of view.\n\nProposed syntax is as follows:\ngit submodule add -r commit_sha git://some_repository.git\n\n\nThanks!\n\n\n-- \n\nhttp://ror6ax.github.io/\n"},{"id":"331803","messageId":"CA+P7+xpzmu2AtcFnD5tC-mW18EhNXmk6TXZFzJG_=wYUoUfxgw@mail.gmail.com","threadId":"47110","inReplyTo":"CACYWVif=zSiXpqVL0td+Mgu-Wz=AzDL50kREcXJY2Dtf_4_y_g@mail.gmail.com","subject":"Re: submodule using revision","fromName":"Jacob Keller","fromEmail":"jacob.keller@gmail.com","sentAt":"2017-11-03T20:26:00Z","receivedAt":"2017-11-03T20:26:27Z","isPatch":false,"sender":{"key":"jacob.keller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/874719?v=4"},"body":"On Fri, Nov 3, 2017 at 6:42 AM, gregory grey <ror6ax@gmail.com> wrote:\n> Hi guys.\n>\n> Currently git submodule only works with branch of the submodule in\n> question. Adding a functionality to work with a revision would be\n> great from my point of view.\n>\n> Proposed syntax is as follows:\n> git submodule add -r commit_sha git://some_repository.git\n>\n>\n> Thanks!\n>\n>\n> --\n>\n> http://ror6ax.github.io/\n\nYou can get similar behavior by doing:\n\ngit submodule add -r <branch> <url>\ncd <subdir>\ngit checkout <commit object id>\ncd ..\ngit ad <subdir>\ngit commit\n\nThanks,\nJake\n"}]}