{"action":"opened","number":9,"pull_request":{"url":"https://api.github.com/repos/caldwell/commit-patch/pulls/9","id":30260485,"html_url":"https://github.com/caldwell/commit-patch/pull/9","diff_url":"https://github.com/caldwell/commit-patch/pull/9.diff","patch_url":"https://github.com/caldwell/commit-patch/pull/9.patch","issue_url":"https://api.github.com/repos/caldwell/commit-patch/issues/9","number":9,"state":"open","locked":false,"title":"emacs interface can now amend commits","user":{"login":"dkogan","id":170011,"avatar_url":"https://avatars.githubusercontent.com/u/170011?v=3","gravatar_id":"","url":"https://api.github.com/users/dkogan","html_url":"https://github.com/dkogan","followers_url":"https://api.github.com/users/dkogan/followers","following_url":"https://api.github.com/users/dkogan/following{/other_user}","gists_url":"https://api.github.com/users/dkogan/gists{/gist_id}","starred_url":"https://api.github.com/users/dkogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkogan/subscriptions","organizations_url":"https://api.github.com/users/dkogan/orgs","repos_url":"https://api.github.com/users/dkogan/repos","events_url":"https://api.github.com/users/dkogan/events{/privacy}","received_events_url":"https://api.github.com/users/dkogan/received_events","type":"User","site_admin":false},"body":"Hi. I've been using a half-assed version of this for years. Here's a full-assed version. In its most basic form you can now C-c C-S-c to amend the last commit instead of creating a new one. You can also invoke this with a new function or by invoking the old function with a prefix arg.","created_at":"2015-03-02T06:01:37Z","updated_at":"2015-03-02T06:01:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/caldwell/commit-patch/pulls/9/commits","review_comments_url":"https://api.github.com/repos/caldwell/commit-patch/pulls/9/comments","review_comment_url":"https://api.github.com/repos/caldwell/commit-patch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/caldwell/commit-patch/issues/9/comments","statuses_url":"https://api.github.com/repos/caldwell/commit-patch/statuses/0f9eab4a1a3c981a06e3ab45adfbf3e91421fd83","head":{"label":"dkogan:master","ref":"master","sha":"0f9eab4a1a3c981a06e3ab45adfbf3e91421fd83","user":{"login":"dkogan","id":170011,"avatar_url":"https://avatars.githubusercontent.com/u/170011?v=3","gravatar_id":"","url":"https://api.github.com/users/dkogan","html_url":"https://github.com/dkogan","followers_url":"https://api.github.com/users/dkogan/followers","following_url":"https://api.github.com/users/dkogan/following{/other_user}","gists_url":"https://api.github.com/users/dkogan/gists{/gist_id}","starred_url":"https://api.github.com/users/dkogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkogan/subscriptions","organizations_url":"https://api.github.com/users/dkogan/orgs","repos_url":"https://api.github.com/users/dkogan/repos","events_url":"https://api.github.com/users/dkogan/events{/privacy}","received_events_url":"https://api.github.com/users/dkogan/received_events","type":"User","site_admin":false},"repo":{"id":21030392,"name":"commit-patch","full_name":"dkogan/commit-patch","owner":{"login":"dkogan","id":170011,"avatar_url":"https://avatars.githubusercontent.com/u/170011?v=3","gravatar_id":"","url":"https://api.github.com/users/dkogan","html_url":"https://github.com/dkogan","followers_url":"https://api.github.com/users/dkogan/followers","following_url":"https://api.github.com/users/dkogan/following{/other_user}","gists_url":"https://api.github.com/users/dkogan/gists{/gist_id}","starred_url":"https://api.github.com/users/dkogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkogan/subscriptions","organizations_url":"https://api.github.com/users/dkogan/orgs","repos_url":"https://api.github.com/users/dkogan/repos","events_url":"https://api.github.com/users/dkogan/events{/privacy}","received_events_url":"https://api.github.com/users/dkogan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dkogan/commit-patch","description":"Commit patches to Darcs, Git, Mercurial, Bazaar, Monotone, Subversion, or CVS","fork":true,"url":"https://api.github.com/repos/dkogan/commit-patch","forks_url":"https://api.github.com/repos/dkogan/commit-patch/forks","keys_url":"https://api.github.com/repos/dkogan/commit-patch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dkogan/commit-patch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dkogan/commit-patch/teams","hooks_url":"https://api.github.com/repos/dkogan/commit-patch/hooks","issue_events_url":"https://api.github.com/repos/dkogan/commit-patch/issues/events{/number}","events_url":"https://api.github.com/repos/dkogan/commit-patch/events","assignees_url":"https://api.github.com/repos/dkogan/commit-patch/assignees{/user}","branches_url":"https://api.github.com/repos/dkogan/commit-patch/branches{/branch}","tags_url":"https://api.github.com/repos/dkogan/commit-patch/tags","blobs_url":"https://api.github.com/repos/dkogan/commit-patch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dkogan/commit-patch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dkogan/commit-patch/git/refs{/sha}","trees_url":"https://api.github.com/repos/dkogan/commit-patch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dkogan/commit-patch/statuses/{sha}","languages_url":"https://api.github.com/repos/dkogan/commit-patch/languages","stargazers_url":"https://api.github.com/repos/dkogan/commit-patch/stargazers","contributors_url":"https://api.github.com/repos/dkogan/commit-patch/contributors","subscribers_url":"https://api.github.com/repos/dkogan/commit-patch/subscribers","subscription_url":"https://api.github.com/repos/dkogan/commit-patch/subscription","commits_url":"https://api.github.com/repos/dkogan/commit-patch/commits{/sha}","git_commits_url":"https://api.github.com/repos/dkogan/commit-patch/git/commits{/sha}","comments_url":"https://api.github.com/repos/dkogan/commit-patch/comments{/number}","issue_comment_url":"https://api.github.com/repos/dkogan/commit-patch/issues/comments{/number}","contents_url":"https://api.github.com/repos/dkogan/commit-patch/contents/{+path}","compare_url":"https://api.github.com/repos/dkogan/commit-patch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dkogan/commit-patch/merges","archive_url":"https://api.github.com/repos/dkogan/commit-patch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dkogan/commit-patch/downloads","issues_url":"https://api.github.com/repos/dkogan/commit-patch/issues{/number}","pulls_url":"https://api.github.com/repos/dkogan/commit-patch/pulls{/number}","milestones_url":"https://api.github.com/repos/dkogan/commit-patch/milestones{/number}","notifications_url":"https://api.github.com/repos/dkogan/commit-patch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dkogan/commit-patch/labels{/name}","releases_url":"https://api.github.com/repos/dkogan/commit-patch/releases{/id}","created_at":"2014-06-20T08:11:03Z","updated_at":"2015-03-02T05:59:07Z","pushed_at":"2015-03-02T05:59:07Z","git_url":"git://github.com/dkogan/commit-patch.git","ssh_url":"git@github.com:dkogan/commit-patch.git","clone_url":"https://github.com/dkogan/commit-patch.git","svn_url":"https://github.com/dkogan/commit-patch","homepage":"http://www.porkrind.org/commit-patch/","size":208,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"caldwell:master","ref":"master","sha":"1ce58933ee5054a120595e2ab1c1341ae8c00de1","user":{"login":"caldwell","id":45445,"avatar_url":"https://avatars.githubusercontent.com/u/45445?v=3","gravatar_id":"","url":"https://api.github.com/users/caldwell","html_url":"https://github.com/caldwell","followers_url":"https://api.github.com/users/caldwell/followers","following_url":"https://api.github.com/users/caldwell/following{/other_user}","gists_url":"https://api.github.com/users/caldwell/gists{/gist_id}","starred_url":"https://api.github.com/users/caldwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caldwell/subscriptions","organizations_url":"https://api.github.com/users/caldwell/orgs","repos_url":"https://api.github.com/users/caldwell/repos","events_url":"https://api.github.com/users/caldwell/events{/privacy}","received_events_url":"https://api.github.com/users/caldwell/received_events","type":"User","site_admin":false},"repo":{"id":569108,"name":"commit-patch","full_name":"caldwell/commit-patch","owner":{"login":"caldwell","id":45445,"avatar_url":"https://avatars.githubusercontent.com/u/45445?v=3","gravatar_id":"","url":"https://api.github.com/users/caldwell","html_url":"https://github.com/caldwell","followers_url":"https://api.github.com/users/caldwell/followers","following_url":"https://api.github.com/users/caldwell/following{/other_user}","gists_url":"https://api.github.com/users/caldwell/gists{/gist_id}","starred_url":"https://api.github.com/users/caldwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caldwell/subscriptions","organizations_url":"https://api.github.com/users/caldwell/orgs","repos_url":"https://api.github.com/users/caldwell/repos","events_url":"https://api.github.com/users/caldwell/events{/privacy}","received_events_url":"https://api.github.com/users/caldwell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caldwell/commit-patch","description":"Commit patches to Darcs, Git, Mercurial, Bazaar, Monotone, Subversion, or CVS","fork":false,"url":"https://api.github.com/repos/caldwell/commit-patch","forks_url":"https://api.github.com/repos/caldwell/commit-patch/forks","keys_url":"https://api.github.com/repos/caldwell/commit-patch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caldwell/commit-patch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caldwell/commit-patch/teams","hooks_url":"https://api.github.com/repos/caldwell/commit-patch/hooks","issue_events_url":"https://api.github.com/repos/caldwell/commit-patch/issues/events{/number}","events_url":"https://api.github.com/repos/caldwell/commit-patch/events","assignees_url":"https://api.github.com/repos/caldwell/commit-patch/assignees{/user}","branches_url":"https://api.github.com/repos/caldwell/commit-patch/branches{/branch}","tags_url":"https://api.github.com/repos/caldwell/commit-patch/tags","blobs_url":"https://api.github.com/repos/caldwell/commit-patch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caldwell/commit-patch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caldwell/commit-patch/git/refs{/sha}","trees_url":"https://api.github.com/repos/caldwell/commit-patch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caldwell/commit-patch/statuses/{sha}","languages_url":"https://api.github.com/repos/caldwell/commit-patch/languages","stargazers_url":"https://api.github.com/repos/caldwell/commit-patch/stargazers","contributors_url":"https://api.github.com/repos/caldwell/commit-patch/contributors","subscribers_url":"https://api.github.com/repos/caldwell/commit-patch/subscribers","subscription_url":"https://api.github.com/repos/caldwell/commit-patch/subscription","commits_url":"https://api.github.com/repos/caldwell/commit-patch/commits{/sha}","git_commits_url":"https://api.github.com/repos/caldwell/commit-patch/git/commits{/sha}","comments_url":"https://api.github.com/repos/caldwell/commit-patch/comments{/number}","issue_comment_url":"https://api.github.com/repos/caldwell/commit-patch/issues/comments{/number}","contents_url":"https://api.github.com/repos/caldwell/commit-patch/contents/{+path}","compare_url":"https://api.github.com/repos/caldwell/commit-patch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caldwell/commit-patch/merges","archive_url":"https://api.github.com/repos/caldwell/commit-patch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caldwell/commit-patch/downloads","issues_url":"https://api.github.com/repos/caldwell/commit-patch/issues{/number}","pulls_url":"https://api.github.com/repos/caldwell/commit-patch/pulls{/number}","milestones_url":"https://api.github.com/repos/caldwell/commit-patch/milestones{/number}","notifications_url":"https://api.github.com/repos/caldwell/commit-patch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caldwell/commit-patch/labels{/name}","releases_url":"https://api.github.com/repos/caldwell/commit-patch/releases{/id}","created_at":"2010-03-18T23:28:14Z","updated_at":"2014-09-24T16:13:27Z","pushed_at":"2014-09-22T01:19:37Z","git_url":"git://github.com/caldwell/commit-patch.git","ssh_url":"git@github.com:caldwell/commit-patch.git","clone_url":"https://github.com/caldwell/commit-patch.git","svn_url":"https://github.com/caldwell/commit-patch","homepage":"http://www.porkrind.org/commit-patch/","size":294,"stargazers_count":9,"watchers_count":9,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/caldwell/commit-patch/pulls/9"},"html":{"href":"https://github.com/caldwell/commit-patch/pull/9"},"issue":{"href":"https://api.github.com/repos/caldwell/commit-patch/issues/9"},"comments":{"href":"https://api.github.com/repos/caldwell/commit-patch/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/caldwell/commit-patch/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/caldwell/commit-patch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/caldwell/commit-patch/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/caldwell/commit-patch/statuses/0f9eab4a1a3c981a06e3ab45adfbf3e91421fd83"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":32,"deletions":11,"changed_files":1}}