{"action":"created","comment":{"url":"https://api.github.com/repos/magit/magit/pulls/comments/38574206","id":38574206,"diff_hunk":"@@ -814,9 +814,17 @@ Return a list of two integers: (A>B B>A).\"\n       (when (and oldrev (not stashish))\n         (magit-git-success \"update-ref\" \"-m\" \"enable reflog\" ref oldrev \"\")))))\n \n-(defun magit-rev-format (format &optional rev)\n-  \"Return output of `git show -s --format=FORMAT [REV]' --.\"\n-  (magit-git-string \"show\" \"-s\" (concat \"--format=\" format) rev \"--\"))\n+(defun magit-rev-format (format &optional rev args)\n+  (let ((str (magit-git-string \"show\" \"--no-patch\"\n+                               (concat \"--format=\" format) args\n+                               (concat rev \"^{commit}\") \"--\")))\n+    (unless (string-equal str \"\")\n+      str)))\n+","path":"lisp/magit-git.el","position":13,"original_position":13,"commit_id":"e564ac337b3eb81cba015c53dab902fc28b493f1","original_commit_id":"e564ac337b3eb81cba015c53dab902fc28b493f1","user":{"login":"tarsius","id":25046,"avatar_url":"https://avatars.githubusercontent.com/u/25046?v=3","gravatar_id":"","url":"https://api.github.com/users/tarsius","html_url":"https://github.com/tarsius","followers_url":"https://api.github.com/users/tarsius/followers","following_url":"https://api.github.com/users/tarsius/following{/other_user}","gists_url":"https://api.github.com/users/tarsius/gists{/gist_id}","starred_url":"https://api.github.com/users/tarsius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarsius/subscriptions","organizations_url":"https://api.github.com/users/tarsius/orgs","repos_url":"https://api.github.com/users/tarsius/repos","events_url":"https://api.github.com/users/tarsius/events{/privacy}","received_events_url":"https://api.github.com/users/tarsius/received_events","type":"User","site_admin":false},"body":"The full output would then include at least one newline.","created_at":"2015-09-02T19:34:22Z","updated_at":"2015-09-02T19:34:22Z","html_url":"https://github.com/magit/magit/pull/2216#discussion_r38574206","pull_request_url":"https://api.github.com/repos/magit/magit/pulls/2216","_links":{"self":{"href":"https://api.github.com/repos/magit/magit/pulls/comments/38574206"},"html":{"href":"https://github.com/magit/magit/pull/2216#discussion_r38574206"},"pull_request":{"href":"https://api.github.com/repos/magit/magit/pulls/2216"}}},"pull_request":{"url":"https://api.github.com/repos/magit/magit/pulls/2216","id":43559502,"html_url":"https://github.com/magit/magit/pull/2216","diff_url":"https://github.com/magit/magit/pull/2216.diff","patch_url":"https://github.com/magit/magit/pull/2216.patch","issue_url":"https://api.github.com/repos/magit/magit/issues/2216","number":2216,"state":"open","locked":false,"title":"Refactor how the revision buffer is created and looks","user":{"login":"tarsius","id":25046,"avatar_url":"https://avatars.githubusercontent.com/u/25046?v=3","gravatar_id":"","url":"https://api.github.com/users/tarsius","html_url":"https://github.com/tarsius","followers_url":"https://api.github.com/users/tarsius/followers","following_url":"https://api.github.com/users/tarsius/following{/other_user}","gists_url":"https://api.github.com/users/tarsius/gists{/gist_id}","starred_url":"https://api.github.com/users/tarsius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarsius/subscriptions","organizations_url":"https://api.github.com/users/tarsius/orgs","repos_url":"https://api.github.com/users/tarsius/repos","events_url":"https://api.github.com/users/tarsius/events{/privacy}","received_events_url":"https://api.github.com/users/tarsius/received_events","type":"User","site_admin":false},"body":"This isn't quite finished but I have merged into `pu` anyway.","created_at":"2015-08-27T19:56:21Z","updated_at":"2015-09-02T19:34:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c5ccb7da9f814ccd2686e3643aecad7b37679b2","assignee":null,"milestone":{"url":"https://api.github.com/repos/magit/magit/milestones/19","html_url":"https://github.com/magit/magit/milestones/2.3.0","labels_url":"https://api.github.com/repos/magit/magit/milestones/19/labels","id":1203589,"number":19,"title":"2.3.0","description":"","creator":{"login":"tarsius","id":25046,"avatar_url":"https://avatars.githubusercontent.com/u/25046?v=3","gravatar_id":"","url":"https://api.github.com/users/tarsius","html_url":"https://github.com/tarsius","followers_url":"https://api.github.com/users/tarsius/followers","following_url":"https://api.github.com/users/tarsius/following{/other_user}","gists_url":"https://api.github.com/users/tarsius/gists{/gist_id}","starred_url":"https://api.github.com/users/tarsius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarsius/subscriptions","organizations_url":"https://api.github.com/users/tarsius/orgs","repos_url":"https://api.github.com/users/tarsius/repos","events_url":"https://api.github.com/users/tarsius/events{/privacy}","received_events_url":"https://api.github.com/users/tarsius/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":18,"state":"open","created_at":"2015-07-11T22:11:39Z","updated_at":"2015-09-01T13:53:07Z","due_on":"2015-09-15T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/magit/magit/pulls/2216/commits","review_comments_url":"https://api.github.com/repos/magit/magit/pulls/2216/comments","review_comment_url":"https://api.github.com/repos/magit/magit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/magit/magit/issues/2216/comments","statuses_url":"https://api.github.com/repos/magit/magit/statuses/e564ac337b3eb81cba015c53dab902fc28b493f1","head":{"label":"magit:jb/refactor-revision-buffer","ref":"jb/refactor-revision-buffer","sha":"e564ac337b3eb81cba015c53dab902fc28b493f1","user":{"login":"magit","id":750076,"avatar_url":"https://avatars.githubusercontent.com/u/750076?v=3","gravatar_id":"","url":"https://api.github.com/users/magit","html_url":"https://github.com/magit","followers_url":"https://api.github.com/users/magit/followers","following_url":"https://api.github.com/users/magit/following{/other_user}","gists_url":"https://api.github.com/users/magit/gists{/gist_id}","starred_url":"https://api.github.com/users/magit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magit/subscriptions","organizations_url":"https://api.github.com/users/magit/orgs","repos_url":"https://api.github.com/users/magit/repos","events_url":"https://api.github.com/users/magit/events{/privacy}","received_events_url":"https://api.github.com/users/magit/received_events","type":"Organization","site_admin":false},"repo":{"id":655492,"name":"magit","full_name":"magit/magit","owner":{"login":"magit","id":750076,"avatar_url":"https://avatars.githubusercontent.com/u/750076?v=3","gravatar_id":"","url":"https://api.github.com/users/magit","html_url":"https://github.com/magit","followers_url":"https://api.github.com/users/magit/followers","following_url":"https://api.github.com/users/magit/following{/other_user}","gists_url":"https://api.github.com/users/magit/gists{/gist_id}","starred_url":"https://api.github.com/users/magit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magit/subscriptions","organizations_url":"https://api.github.com/users/magit/orgs","repos_url":"https://api.github.com/users/magit/repos","events_url":"https://api.github.com/users/magit/events{/privacy}","received_events_url":"https://api.github.com/users/magit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/magit/magit","description":"It's Magit! A Git Porcelain inside Emacs.","fork":false,"url":"https://api.github.com/repos/magit/magit","forks_url":"https://api.github.com/repos/magit/magit/forks","keys_url":"https://api.github.com/repos/magit/magit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magit/magit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magit/magit/teams","hooks_url":"https://api.github.com/repos/magit/magit/hooks","issue_events_url":"https://api.github.com/repos/magit/magit/issues/events{/number}","events_url":"https://api.github.com/repos/magit/magit/events","assignees_url":"https://api.github.com/repos/magit/magit/assignees{/user}","branches_url":"https://api.github.com/repos/magit/magit/branches{/branch}","tags_url":"https://api.github.com/repos/magit/magit/tags","blobs_url":"https://api.github.com/repos/magit/magit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magit/magit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magit/magit/git/refs{/sha}","trees_url":"https://api.github.com/repos/magit/magit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magit/magit/statuses/{sha}","languages_url":"https://api.github.com/repos/magit/magit/languages","stargazers_url":"https://api.github.com/repos/magit/magit/stargazers","contributors_url":"https://api.github.com/repos/magit/magit/contributors","subscribers_url":"https://api.github.com/repos/magit/magit/subscribers","subscription_url":"https://api.github.com/repos/magit/magit/subscription","commits_url":"https://api.github.com/repos/magit/magit/commits{/sha}","git_commits_url":"https://api.github.com/repos/magit/magit/git/commits{/sha}","comments_url":"https://api.github.com/repos/magit/magit/comments{/number}","issue_comment_url":"https://api.github.com/repos/magit/magit/issues/comments{/number}","contents_url":"https://api.github.com/repos/magit/magit/contents/{+path}","compare_url":"https://api.github.com/repos/magit/magit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magit/magit/merges","archive_url":"https://api.github.com/repos/magit/magit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magit/magit/downloads","issues_url":"https://api.github.com/repos/magit/magit/issues{/number}","pulls_url":"https://api.github.com/repos/magit/magit/pulls{/number}","milestones_url":"https://api.github.com/repos/magit/magit/milestones{/number}","notifications_url":"https://api.github.com/repos/magit/magit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magit/magit/labels{/name}","releases_url":"https://api.github.com/repos/magit/magit/releases{/id}","created_at":"2010-05-07T19:07:04Z","updated_at":"2015-09-02T07:04:35Z","pushed_at":"2015-09-02T14:25:09Z","git_url":"git://github.com/magit/magit.git","ssh_url":"git@github.com:magit/magit.git","clone_url":"https://github.com/magit/magit.git","svn_url":"https://github.com/magit/magit","homepage":"http://magit.vc","size":23328,"stargazers_count":1691,"watchers_count":1691,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":352,"mirror_url":null,"open_issues_count":27,"forks":352,"open_issues":27,"watchers":1691,"default_branch":"master"}},"base":{"label":"magit:master","ref":"master","sha":"ec6bb994b1365ca2b7a56cf60196c21c2e69e12a","user":{"login":"magit","id":750076,"avatar_url":"https://avatars.githubusercontent.com/u/750076?v=3","gravatar_id":"","url":"https://api.github.com/users/magit","html_url":"https://github.com/magit","followers_url":"https://api.github.com/users/magit/followers","following_url":"https://api.github.com/users/magit/following{/other_user}","gists_url":"https://api.github.com/users/magit/gists{/gist_id}","starred_url":"https://api.github.com/users/magit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magit/subscriptions","organizations_url":"https://api.github.com/users/magit/orgs","repos_url":"https://api.github.com/users/magit/repos","events_url":"https://api.github.com/users/magit/events{/privacy}","received_events_url":"https://api.github.com/users/magit/received_events","type":"Organization","site_admin":false},"repo":{"id":655492,"name":"magit","full_name":"magit/magit","owner":{"login":"magit","id":750076,"avatar_url":"https://avatars.githubusercontent.com/u/750076?v=3","gravatar_id":"","url":"https://api.github.com/users/magit","html_url":"https://github.com/magit","followers_url":"https://api.github.com/users/magit/followers","following_url":"https://api.github.com/users/magit/following{/other_user}","gists_url":"https://api.github.com/users/magit/gists{/gist_id}","starred_url":"https://api.github.com/users/magit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magit/subscriptions","organizations_url":"https://api.github.com/users/magit/orgs","repos_url":"https://api.github.com/users/magit/repos","events_url":"https://api.github.com/users/magit/events{/privacy}","received_events_url":"https://api.github.com/users/magit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/magit/magit","description":"It's Magit! A Git Porcelain inside Emacs.","fork":false,"url":"https://api.github.com/repos/magit/magit","forks_url":"https://api.github.com/repos/magit/magit/forks","keys_url":"https://api.github.com/repos/magit/magit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magit/magit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magit/magit/teams","hooks_url":"https://api.github.com/repos/magit/magit/hooks","issue_events_url":"https://api.github.com/repos/magit/magit/issues/events{/number}","events_url":"https://api.github.com/repos/magit/magit/events","assignees_url":"https://api.github.com/repos/magit/magit/assignees{/user}","branches_url":"https://api.github.com/repos/magit/magit/branches{/branch}","tags_url":"https://api.github.com/repos/magit/magit/tags","blobs_url":"https://api.github.com/repos/magit/magit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magit/magit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magit/magit/git/refs{/sha}","trees_url":"https://api.github.com/repos/magit/magit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magit/magit/statuses/{sha}","languages_url":"https://api.github.com/repos/magit/magit/languages","stargazers_url":"https://api.github.com/repos/magit/magit/stargazers","contributors_url":"https://api.github.com/repos/magit/magit/contributors","subscribers_url":"https://api.github.com/repos/magit/magit/subscribers","subscription_url":"https://api.github.com/repos/magit/magit/subscription","commits_url":"https://api.github.com/repos/magit/magit/commits{/sha}","git_commits_url":"https://api.github.com/repos/magit/magit/git/commits{/sha}","comments_url":"https://api.github.com/repos/magit/magit/comments{/number}","issue_comment_url":"https://api.github.com/repos/magit/magit/issues/comments{/number}","contents_url":"https://api.github.com/repos/magit/magit/contents/{+path}","compare_url":"https://api.github.com/repos/magit/magit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magit/magit/merges","archive_url":"https://api.github.com/repos/magit/magit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magit/magit/downloads","issues_url":"https://api.github.com/repos/magit/magit/issues{/number}","pulls_url":"https://api.github.com/repos/magit/magit/pulls{/number}","milestones_url":"https://api.github.com/repos/magit/magit/milestones{/number}","notifications_url":"https://api.github.com/repos/magit/magit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magit/magit/labels{/name}","releases_url":"https://api.github.com/repos/magit/magit/releases{/id}","created_at":"2010-05-07T19:07:04Z","updated_at":"2015-09-02T07:04:35Z","pushed_at":"2015-09-02T14:25:09Z","git_url":"git://github.com/magit/magit.git","ssh_url":"git@github.com:magit/magit.git","clone_url":"https://github.com/magit/magit.git","svn_url":"https://github.com/magit/magit","homepage":"http://magit.vc","size":23328,"stargazers_count":1691,"watchers_count":1691,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":352,"mirror_url":null,"open_issues_count":27,"forks":352,"open_issues":27,"watchers":1691,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/magit/magit/pulls/2216"},"html":{"href":"https://github.com/magit/magit/pull/2216"},"issue":{"href":"https://api.github.com/repos/magit/magit/issues/2216"},"comments":{"href":"https://api.github.com/repos/magit/magit/issues/2216/comments"},"review_comments":{"href":"https://api.github.com/repos/magit/magit/pulls/2216/comments"},"review_comment":{"href":"https://api.github.com/repos/magit/magit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/magit/magit/pulls/2216/commits"},"statuses":{"href":"https://api.github.com/repos/magit/magit/statuses/e564ac337b3eb81cba015c53dab902fc28b493f1"}}}}