{"action":"created","issue":{"url":"https://api.github.com/repos/libgit2/libgit2/issues/3344","labels_url":"https://api.github.com/repos/libgit2/libgit2/issues/3344/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/libgit2/issues/3344/comments","events_url":"https://api.github.com/repos/libgit2/libgit2/issues/3344/events","html_url":"https://github.com/libgit2/libgit2/pull/3344","id":98553297,"number":3344,"title":"index: stage an unregistered submodule as well","user":{"login":"carlosmn","id":335443,"avatar_url":"https://avatars.githubusercontent.com/u/335443?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosmn","html_url":"https://github.com/carlosmn","followers_url":"https://api.github.com/users/carlosmn/followers","following_url":"https://api.github.com/users/carlosmn/following{/other_user}","gists_url":"https://api.github.com/users/carlosmn/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosmn/subscriptions","organizations_url":"https://api.github.com/users/carlosmn/orgs","repos_url":"https://api.github.com/users/carlosmn/repos","events_url":"https://api.github.com/users/carlosmn/events{/privacy}","received_events_url":"https://api.github.com/users/carlosmn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-01T17:59:54Z","updated_at":"2015-08-02T03:52:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/libgit2/libgit2/pulls/3344","html_url":"https://github.com/libgit2/libgit2/pull/3344","diff_url":"https://github.com/libgit2/libgit2/pull/3344.diff","patch_url":"https://github.com/libgit2/libgit2/pull/3344.patch"},"body":"index: stage an unregistered submodule as well\r\n    \r\nWe previously added logic to `_add_bypath()` to update a submodule. Go\r\nfurther and stage the submodule even if it's not registered to behave\r\nlike git.\r\n\r\nThis is an alternative to #3326 and #3336 which mimics git's behaviour while not changing the behaviour of the submodule API, so we can easily backport it."},"comment":{"url":"https://api.github.com/repos/libgit2/libgit2/issues/comments/126986129","html_url":"https://github.com/libgit2/libgit2/pull/3344#issuecomment-126986129","issue_url":"https://api.github.com/repos/libgit2/libgit2/issues/3344","id":126986129,"user":{"login":"linquize","id":791115,"avatar_url":"https://avatars.githubusercontent.com/u/791115?v=3","gravatar_id":"","url":"https://api.github.com/users/linquize","html_url":"https://github.com/linquize","followers_url":"https://api.github.com/users/linquize/followers","following_url":"https://api.github.com/users/linquize/following{/other_user}","gists_url":"https://api.github.com/users/linquize/gists{/gist_id}","starred_url":"https://api.github.com/users/linquize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linquize/subscriptions","organizations_url":"https://api.github.com/users/linquize/orgs","repos_url":"https://api.github.com/users/linquize/repos","events_url":"https://api.github.com/users/linquize/events{/privacy}","received_events_url":"https://api.github.com/users/linquize/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T03:52:17Z","updated_at":"2015-08-02T03:52:17Z","body":"LGTM"}}