{"action":"created","comment":{"url":"https://api.github.com/repos/matthiasbeyer/imag/pulls/comments/77988200","id":77988200,"diff_hunk":"@@ -96,21 +99,50 @@ impl StoreIdAccessor for UpdateHook {\n         let repo      = try!(self.runtime.repository(&action));\n         let mut index = try!(fetch_index(repo, &action));\n \n-        let tree_id = try!(\n-            index.write_tree()\n-                .map_err_into(GHEK::RepositoryIndexWritingError)\n-                .map_into_hook_error()\n-        );\n-\n         let signature = try!(\n             repo.signature()\n                 .map_err_into(GHEK::MkSignature)\n+                .map_dbg_err_str(\"Failed to fetch signature\")\n                 .map_into_hook_error()\n         );\n \n         let head = try!(\n             repo.head()\n                 .map_err_into(GHEK::HeadFetchError)\n+                .map_dbg_err_str(\"Failed to fetch HEAD\")\n+                .map_into_hook_error()\n+        );\n+\n+        let file_status = try!(\n+            repo\n+                .status_file(id.local())\n+                .map_dbg_err_str(\"Failed to fetch file status\")\n+                .map_dbg_err(|e| format!(\"\\t->  {:?}\", e))\n+                .map_err_into(GHEK::RepositoryFileStatusError)\n+                .map_into_hook_error()\n+        );\n+\n+        let cb = &mut |path: &Path, _matched_spec: &[u8]| -> i32 {","path":"libimagstorestdhook/src/vcs/git/update.rs","position":48,"original_position":48,"commit_id":"fe909be125abeea3c3ad6df46235124d40ffc4a7","original_commit_id":"fe909be125abeea3c3ad6df46235124d40ffc4a7","user":{"login":"mario-kr","id":7137799,"avatar_url":"https://avatars.githubusercontent.com/u/7137799?v=3","gravatar_id":"","url":"https://api.github.com/users/mario-kr","html_url":"https://github.com/mario-kr","followers_url":"https://api.github.com/users/mario-kr/followers","following_url":"https://api.github.com/users/mario-kr/following{/other_user}","gists_url":"https://api.github.com/users/mario-kr/gists{/gist_id}","starred_url":"https://api.github.com/users/mario-kr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mario-kr/subscriptions","organizations_url":"https://api.github.com/users/mario-kr/orgs","repos_url":"https://api.github.com/users/mario-kr/repos","events_url":"https://api.github.com/users/mario-kr/events{/privacy}","received_events_url":"https://api.github.com/users/mario-kr/received_events","type":"User","site_admin":false},"body":"what is `_matched_spec` used for? I dont see it being used.\r\ncb isnt really descriptive for a closure definition. ","created_at":"2016-09-08T11:23:19Z","updated_at":"2016-09-08T11:23:19Z","html_url":"https://github.com/matthiasbeyer/imag/pull/723#discussion_r77988200","pull_request_url":"https://api.github.com/repos/matthiasbeyer/imag/pulls/723","_links":{"self":{"href":"https://api.github.com/repos/matthiasbeyer/imag/pulls/comments/77988200"},"html":{"href":"https://github.com/matthiasbeyer/imag/pull/723#discussion_r77988200"},"pull_request":{"href":"https://api.github.com/repos/matthiasbeyer/imag/pulls/723"}}},"pull_request":{"url":"https://api.github.com/repos/matthiasbeyer/imag/pulls/723","id":84432525,"html_url":"https://github.com/matthiasbeyer/imag/pull/723","diff_url":"https://github.com/matthiasbeyer/imag/pull/723.diff","patch_url":"https://github.com/matthiasbeyer/imag/pull/723.patch","issue_url":"https://api.github.com/repos/matthiasbeyer/imag/issues/723","number":723,"state":"open","locked":false,"title":"libimagstorestdhook: git ci fixes","user":{"login":"matthiasbeyer","id":427866,"avatar_url":"https://avatars.githubusercontent.com/u/427866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasbeyer","html_url":"https://github.com/matthiasbeyer","followers_url":"https://api.github.com/users/matthiasbeyer/followers","following_url":"https://api.github.com/users/matthiasbeyer/following{/other_user}","gists_url":"https://api.github.com/users/matthiasbeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasbeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasbeyer/subscriptions","organizations_url":"https://api.github.com/users/matthiasbeyer/orgs","repos_url":"https://api.github.com/users/matthiasbeyer/repos","events_url":"https://api.github.com/users/matthiasbeyer/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasbeyer/received_events","type":"User","site_admin":false},"body":"It is not working yet, but I hope that @TheNeikos can tell me what is wrong here.\r\n\r\n---\r\n\r\n( @TheNeikos see your mail account, I've written a mail how to reproduce the issue I'm experiencing )","created_at":"2016-09-08T08:11:50Z","updated_at":"2016-09-08T11:23:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de788886bb6ac4221d54241b864f474d1267123d","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/matthiasbeyer/imag/milestones/2","html_url":"https://github.com/matthiasbeyer/imag/milestones/0.2.0","labels_url":"https://api.github.com/repos/matthiasbeyer/imag/milestones/2/labels","id":1960223,"number":2,"title":"0.2.0","description":"A intermediate release containing _some_ functionality which could be tested by potential users and/or contributors.\r\n\r\nThis cannot be expected to be stable at all. It is more like a starting point for potential reviewers/developers/users and other interested people to have a closer look and also to generate some more feedback from the Rust community to steer the project a bit less loosely.","creator":{"login":"matthiasbeyer","id":427866,"avatar_url":"https://avatars.githubusercontent.com/u/427866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasbeyer","html_url":"https://github.com/matthiasbeyer","followers_url":"https://api.github.com/users/matthiasbeyer/followers","following_url":"https://api.github.com/users/matthiasbeyer/following{/other_user}","gists_url":"https://api.github.com/users/matthiasbeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasbeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasbeyer/subscriptions","organizations_url":"https://api.github.com/users/matthiasbeyer/orgs","repos_url":"https://api.github.com/users/matthiasbeyer/repos","events_url":"https://api.github.com/users/matthiasbeyer/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasbeyer/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":17,"state":"open","created_at":"2016-08-24T10:53:50Z","updated_at":"2016-09-08T08:27:01Z","due_on":"2016-12-31T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/matthiasbeyer/imag/pulls/723/commits","review_comments_url":"https://api.github.com/repos/matthiasbeyer/imag/pulls/723/comments","review_comment_url":"https://api.github.com/repos/matthiasbeyer/imag/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matthiasbeyer/imag/issues/723/comments","statuses_url":"https://api.github.com/repos/matthiasbeyer/imag/statuses/fe909be125abeea3c3ad6df46235124d40ffc4a7","head":{"label":"matthiasbeyer:libimagstorestdhook/git-ci-fixes","ref":"libimagstorestdhook/git-ci-fixes","sha":"fe909be125abeea3c3ad6df46235124d40ffc4a7","user":{"login":"matthiasbeyer","id":427866,"avatar_url":"https://avatars.githubusercontent.com/u/427866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasbeyer","html_url":"https://github.com/matthiasbeyer","followers_url":"https://api.github.com/users/matthiasbeyer/followers","following_url":"https://api.github.com/users/matthiasbeyer/following{/other_user}","gists_url":"https://api.github.com/users/matthiasbeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasbeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasbeyer/subscriptions","organizations_url":"https://api.github.com/users/matthiasbeyer/orgs","repos_url":"https://api.github.com/users/matthiasbeyer/repos","events_url":"https://api.github.com/users/matthiasbeyer/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasbeyer/received_events","type":"User","site_admin":false},"repo":{"id":45788713,"name":"imag","full_name":"matthiasbeyer/imag","owner":{"login":"matthiasbeyer","id":427866,"avatar_url":"https://avatars.githubusercontent.com/u/427866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasbeyer","html_url":"https://github.com/matthiasbeyer","followers_url":"https://api.github.com/users/matthiasbeyer/followers","following_url":"https://api.github.com/users/matthiasbeyer/following{/other_user}","gists_url":"https://api.github.com/users/matthiasbeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasbeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasbeyer/subscriptions","organizations_url":"https://api.github.com/users/matthiasbeyer/orgs","repos_url":"https://api.github.com/users/matthiasbeyer/repos","events_url":"https://api.github.com/users/matthiasbeyer/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasbeyer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthiasbeyer/imag","description":"imag - Text based personal information management suite","fork":false,"url":"https://api.github.com/repos/matthiasbeyer/imag","forks_url":"https://api.github.com/repos/matthiasbeyer/imag/forks","keys_url":"https://api.github.com/repos/matthiasbeyer/imag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthiasbeyer/imag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthiasbeyer/imag/teams","hooks_url":"https://api.github.com/repos/matthiasbeyer/imag/hooks","issue_events_url":"https://api.github.com/repos/matthiasbeyer/imag/issues/events{/number}","events_url":"https://api.github.com/repos/matthiasbeyer/imag/events","assignees_url":"https://api.github.com/repos/matthiasbeyer/imag/assignees{/user}","branches_url":"https://api.github.com/repos/matthiasbeyer/imag/branches{/branch}","tags_url":"https://api.github.com/repos/matthiasbeyer/imag/tags","blobs_url":"https://api.github.com/repos/matthiasbeyer/imag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthiasbeyer/imag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthiasbeyer/imag/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthiasbeyer/imag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthiasbeyer/imag/statuses/{sha}","languages_url":"https://api.github.com/repos/matthiasbeyer/imag/languages","stargazers_url":"https://api.github.com/repos/matthiasbeyer/imag/stargazers","contributors_url":"https://api.github.com/repos/matthiasbeyer/imag/contributors","subscribers_url":"https://api.github.com/repos/matthiasbeyer/imag/subscribers","subscription_url":"https://api.github.com/repos/matthiasbeyer/imag/subscription","commits_url":"https://api.github.com/repos/matthiasbeyer/imag/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthiasbeyer/imag/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthiasbeyer/imag/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthiasbeyer/imag/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthiasbeyer/imag/contents/{+path}","compare_url":"https://api.github.com/repos/matthiasbeyer/imag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthiasbeyer/imag/merges","archive_url":"https://api.github.com/repos/matthiasbeyer/imag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthiasbeyer/imag/downloads","issues_url":"https://api.github.com/repos/matthiasbeyer/imag/issues{/number}","pulls_url":"https://api.github.com/repos/matthiasbeyer/imag/pulls{/number}","milestones_url":"https://api.github.com/repos/matthiasbeyer/imag/milestones{/number}","notifications_url":"https://api.github.com/repos/matthiasbeyer/imag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthiasbeyer/imag/labels{/name}","releases_url":"https://api.github.com/repos/matthiasbeyer/imag/releases{/id}","deployments_url":"https://api.github.com/repos/matthiasbeyer/imag/deployments","created_at":"2015-11-08T16:34:25Z","updated_at":"2016-09-08T10:42:14Z","pushed_at":"2016-09-08T10:55:39Z","git_url":"git://github.com/matthiasbeyer/imag.git","ssh_url":"git@github.com:matthiasbeyer/imag.git","clone_url":"https://github.com/matthiasbeyer/imag.git","svn_url":"https://github.com/matthiasbeyer/imag","homepage":"http://imag-pim.org","size":9238,"stargazers_count":114,"watchers_count":114,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":17,"mirror_url":null,"open_issues_count":78,"forks":17,"open_issues":78,"watchers":114,"default_branch":"master"}},"base":{"label":"matthiasbeyer:libimagstorestdhook/git","ref":"libimagstorestdhook/git","sha":"566c4633836bf23de2ba197eae4dd9b3112828b5","user":{"login":"matthiasbeyer","id":427866,"avatar_url":"https://avatars.githubusercontent.com/u/427866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasbeyer","html_url":"https://github.com/matthiasbeyer","followers_url":"https://api.github.com/users/matthiasbeyer/followers","following_url":"https://api.github.com/users/matthiasbeyer/following{/other_user}","gists_url":"https://api.github.com/users/matthiasbeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasbeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasbeyer/subscriptions","organizations_url":"https://api.github.com/users/matthiasbeyer/orgs","repos_url":"https://api.github.com/users/matthiasbeyer/repos","events_url":"https://api.github.com/users/matthiasbeyer/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasbeyer/received_events","type":"User","site_admin":false},"repo":{"id":45788713,"name":"imag","full_name":"matthiasbeyer/imag","owner":{"login":"matthiasbeyer","id":427866,"avatar_url":"https://avatars.githubusercontent.com/u/427866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasbeyer","html_url":"https://github.com/matthiasbeyer","followers_url":"https://api.github.com/users/matthiasbeyer/followers","following_url":"https://api.github.com/users/matthiasbeyer/following{/other_user}","gists_url":"https://api.github.com/users/matthiasbeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasbeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasbeyer/subscriptions","organizations_url":"https://api.github.com/users/matthiasbeyer/orgs","repos_url":"https://api.github.com/users/matthiasbeyer/repos","events_url":"https://api.github.com/users/matthiasbeyer/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasbeyer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthiasbeyer/imag","description":"imag - Text based personal information management suite","fork":false,"url":"https://api.github.com/repos/matthiasbeyer/imag","forks_url":"https://api.github.com/repos/matthiasbeyer/imag/forks","keys_url":"https://api.github.com/repos/matthiasbeyer/imag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthiasbeyer/imag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthiasbeyer/imag/teams","hooks_url":"https://api.github.com/repos/matthiasbeyer/imag/hooks","issue_events_url":"https://api.github.com/repos/matthiasbeyer/imag/issues/events{/number}","events_url":"https://api.github.com/repos/matthiasbeyer/imag/events","assignees_url":"https://api.github.com/repos/matthiasbeyer/imag/assignees{/user}","branches_url":"https://api.github.com/repos/matthiasbeyer/imag/branches{/branch}","tags_url":"https://api.github.com/repos/matthiasbeyer/imag/tags","blobs_url":"https://api.github.com/repos/matthiasbeyer/imag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthiasbeyer/imag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthiasbeyer/imag/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthiasbeyer/imag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthiasbeyer/imag/statuses/{sha}","languages_url":"https://api.github.com/repos/matthiasbeyer/imag/languages","stargazers_url":"https://api.github.com/repos/matthiasbeyer/imag/stargazers","contributors_url":"https://api.github.com/repos/matthiasbeyer/imag/contributors","subscribers_url":"https://api.github.com/repos/matthiasbeyer/imag/subscribers","subscription_url":"https://api.github.com/repos/matthiasbeyer/imag/subscription","commits_url":"https://api.github.com/repos/matthiasbeyer/imag/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthiasbeyer/imag/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthiasbeyer/imag/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthiasbeyer/imag/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthiasbeyer/imag/contents/{+path}","compare_url":"https://api.github.com/repos/matthiasbeyer/imag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthiasbeyer/imag/merges","archive_url":"https://api.github.com/repos/matthiasbeyer/imag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthiasbeyer/imag/downloads","issues_url":"https://api.github.com/repos/matthiasbeyer/imag/issues{/number}","pulls_url":"https://api.github.com/repos/matthiasbeyer/imag/pulls{/number}","milestones_url":"https://api.github.com/repos/matthiasbeyer/imag/milestones{/number}","notifications_url":"https://api.github.com/repos/matthiasbeyer/imag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthiasbeyer/imag/labels{/name}","releases_url":"https://api.github.com/repos/matthiasbeyer/imag/releases{/id}","deployments_url":"https://api.github.com/repos/matthiasbeyer/imag/deployments","created_at":"2015-11-08T16:34:25Z","updated_at":"2016-09-08T10:42:14Z","pushed_at":"2016-09-08T10:55:39Z","git_url":"git://github.com/matthiasbeyer/imag.git","ssh_url":"git@github.com:matthiasbeyer/imag.git","clone_url":"https://github.com/matthiasbeyer/imag.git","svn_url":"https://github.com/matthiasbeyer/imag","homepage":"http://imag-pim.org","size":9238,"stargazers_count":114,"watchers_count":114,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":17,"mirror_url":null,"open_issues_count":78,"forks":17,"open_issues":78,"watchers":114,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matthiasbeyer/imag/pulls/723"},"html":{"href":"https://github.com/matthiasbeyer/imag/pull/723"},"issue":{"href":"https://api.github.com/repos/matthiasbeyer/imag/issues/723"},"comments":{"href":"https://api.github.com/repos/matthiasbeyer/imag/issues/723/comments"},"review_comments":{"href":"https://api.github.com/repos/matthiasbeyer/imag/pulls/723/comments"},"review_comment":{"href":"https://api.github.com/repos/matthiasbeyer/imag/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matthiasbeyer/imag/pulls/723/commits"},"statuses":{"href":"https://api.github.com/repos/matthiasbeyer/imag/statuses/fe909be125abeea3c3ad6df46235124d40ffc4a7"}}}}
{"actor":{"display_login":"mario-kr"}}