{"action":"created","issue":{"url":"https://api.github.com/repos/libgit2/libgit2/issues/3550","labels_url":"https://api.github.com/repos/libgit2/libgit2/issues/3550/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/libgit2/issues/3550/comments","events_url":"https://api.github.com/repos/libgit2/libgit2/issues/3550/events","html_url":"https://github.com/libgit2/libgit2/pull/3550","id":122540000,"number":3550,"title":"Index fill: Small fixups","user":{"login":"vmg","id":42793,"avatar_url":"https://avatars.githubusercontent.com/u/42793?v=3","gravatar_id":"","url":"https://api.github.com/users/vmg","html_url":"https://github.com/vmg","followers_url":"https://api.github.com/users/vmg/followers","following_url":"https://api.github.com/users/vmg/following{/other_user}","gists_url":"https://api.github.com/users/vmg/gists{/gist_id}","starred_url":"https://api.github.com/users/vmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmg/subscriptions","organizations_url":"https://api.github.com/users/vmg/orgs","repos_url":"https://api.github.com/users/vmg/repos","events_url":"https://api.github.com/users/vmg/events{/privacy}","received_events_url":"https://api.github.com/users/vmg/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-16T16:06:55Z","updated_at":"2015-12-16T18:39:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/libgit2/libgit2/pulls/3550","html_url":"https://github.com/libgit2/libgit2/pull/3550","diff_url":"https://github.com/libgit2/libgit2/pull/3550.diff","patch_url":"https://github.com/libgit2/libgit2/pull/3550.patch"},"body":"- Adjust the namemask for the index entry (just in case!)\r\n- Normalize the filemode (also just in case!)\r\n- Pre-allocate the entries array (since we already know the final size!)\r\n\r\ncc @carlosmn @ethomson "},"comment":{"url":"https://api.github.com/repos/libgit2/libgit2/issues/comments/165206781","html_url":"https://github.com/libgit2/libgit2/pull/3550#issuecomment-165206781","issue_url":"https://api.github.com/repos/libgit2/libgit2/issues/3550","id":165206781,"user":{"login":"vmg","id":42793,"avatar_url":"https://avatars.githubusercontent.com/u/42793?v=3","gravatar_id":"","url":"https://api.github.com/users/vmg","html_url":"https://github.com/vmg","followers_url":"https://api.github.com/users/vmg/followers","following_url":"https://api.github.com/users/vmg/following{/other_user}","gists_url":"https://api.github.com/users/vmg/gists{/gist_id}","starred_url":"https://api.github.com/users/vmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmg/subscriptions","organizations_url":"https://api.github.com/users/vmg/orgs","repos_url":"https://api.github.com/users/vmg/repos","events_url":"https://api.github.com/users/vmg/events{/privacy}","received_events_url":"https://api.github.com/users/vmg/received_events","type":"User","site_admin":true},"created_at":"2015-12-16T18:39:49Z","updated_at":"2015-12-16T18:39:49Z","body":"@carlosmn: I've added the hash table resize!\r\n@ethomson: Good question, I'm not sure. Maybe @peff can chime in, but I feel if we're getting a bad file mode, normalizing it (since generally we can always normalize filemodes) for the output index is the right thing to do."}}