{"action":"closed","number":23,"pull_request":{"url":"https://api.github.com/repos/jwiegley/git-scripts/pulls/23","id":55980451,"html_url":"https://github.com/jwiegley/git-scripts/pull/23","diff_url":"https://github.com/jwiegley/git-scripts/pull/23.diff","patch_url":"https://github.com/jwiegley/git-scripts/pull/23.patch","issue_url":"https://api.github.com/repos/jwiegley/git-scripts/issues/23","number":23,"state":"closed","locked":false,"title":"Added support for non-empty git-svn prefix","user":{"login":"javabrett","id":1103477,"avatar_url":"https://avatars.githubusercontent.com/u/1103477?v=3","gravatar_id":"","url":"https://api.github.com/users/javabrett","html_url":"https://github.com/javabrett","followers_url":"https://api.github.com/users/javabrett/followers","following_url":"https://api.github.com/users/javabrett/following{/other_user}","gists_url":"https://api.github.com/users/javabrett/gists{/gist_id}","starred_url":"https://api.github.com/users/javabrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javabrett/subscriptions","organizations_url":"https://api.github.com/users/javabrett/orgs","repos_url":"https://api.github.com/users/javabrett/repos","events_url":"https://api.github.com/users/javabrett/events{/privacy}","received_events_url":"https://api.github.com/users/javabrett/received_events","type":"User","site_admin":false},"body":"Prior to Git 2.0, git-svn init/clone operations used an empty --prefix by-default.  In 2.0, the default prefix is changed to \"origin/\".  This is for good reason - it avoids the non-standard, non-prefixed branch-names previously-created by git-svn when importing remote branches.\r\n\r\nThe git-svn-diff script, when working on non-trunk (i.e. a branch under /branches) made the assumption that remote branch-names were non-prefixed, e.g. \"my-branch\" instead of \"origin/my-branch\" when looking for the current commit.\r\n\r\nThis commit adds support for discovering and using the git-svn prefix.  It should work with both Git <2.0 and >=2.0, and with empty and non-empty prefixes.","created_at":"2016-01-14T01:11:31Z","updated_at":"2016-01-18T22:16:58Z","closed_at":"2016-01-18T22:16:58Z","merged_at":"2016-01-18T22:16:58Z","merge_commit_sha":"fa2b308002fa9fded77a6a88597f59684be5bfb7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jwiegley/git-scripts/pulls/23/commits","review_comments_url":"https://api.github.com/repos/jwiegley/git-scripts/pulls/23/comments","review_comment_url":"https://api.github.com/repos/jwiegley/git-scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jwiegley/git-scripts/issues/23/comments","statuses_url":"https://api.github.com/repos/jwiegley/git-scripts/statuses/fc48ce909770c572f60346c1ab6da04584402c1e","head":{"label":"javabrett:git-svn-diff-prefix-support","ref":"git-svn-diff-prefix-support","sha":"fc48ce909770c572f60346c1ab6da04584402c1e","user":{"login":"javabrett","id":1103477,"avatar_url":"https://avatars.githubusercontent.com/u/1103477?v=3","gravatar_id":"","url":"https://api.github.com/users/javabrett","html_url":"https://github.com/javabrett","followers_url":"https://api.github.com/users/javabrett/followers","following_url":"https://api.github.com/users/javabrett/following{/other_user}","gists_url":"https://api.github.com/users/javabrett/gists{/gist_id}","starred_url":"https://api.github.com/users/javabrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javabrett/subscriptions","organizations_url":"https://api.github.com/users/javabrett/orgs","repos_url":"https://api.github.com/users/javabrett/repos","events_url":"https://api.github.com/users/javabrett/events{/privacy}","received_events_url":"https://api.github.com/users/javabrett/received_events","type":"User","site_admin":false},"repo":{"id":3633403,"name":"git-scripts","full_name":"javabrett/git-scripts","owner":{"login":"javabrett","id":1103477,"avatar_url":"https://avatars.githubusercontent.com/u/1103477?v=3","gravatar_id":"","url":"https://api.github.com/users/javabrett","html_url":"https://github.com/javabrett","followers_url":"https://api.github.com/users/javabrett/followers","following_url":"https://api.github.com/users/javabrett/following{/other_user}","gists_url":"https://api.github.com/users/javabrett/gists{/gist_id}","starred_url":"https://api.github.com/users/javabrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javabrett/subscriptions","organizations_url":"https://api.github.com/users/javabrett/orgs","repos_url":"https://api.github.com/users/javabrett/repos","events_url":"https://api.github.com/users/javabrett/events{/privacy}","received_events_url":"https://api.github.com/users/javabrett/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/javabrett/git-scripts","description":"A bunch of random scripts I've either written, downloaded or clipped from #git.","fork":true,"url":"https://api.github.com/repos/javabrett/git-scripts","forks_url":"https://api.github.com/repos/javabrett/git-scripts/forks","keys_url":"https://api.github.com/repos/javabrett/git-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/javabrett/git-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/javabrett/git-scripts/teams","hooks_url":"https://api.github.com/repos/javabrett/git-scripts/hooks","issue_events_url":"https://api.github.com/repos/javabrett/git-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/javabrett/git-scripts/events","assignees_url":"https://api.github.com/repos/javabrett/git-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/javabrett/git-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/javabrett/git-scripts/tags","blobs_url":"https://api.github.com/repos/javabrett/git-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/javabrett/git-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/javabrett/git-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/javabrett/git-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/javabrett/git-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/javabrett/git-scripts/languages","stargazers_url":"https://api.github.com/repos/javabrett/git-scripts/stargazers","contributors_url":"https://api.github.com/repos/javabrett/git-scripts/contributors","subscribers_url":"https://api.github.com/repos/javabrett/git-scripts/subscribers","subscription_url":"https://api.github.com/repos/javabrett/git-scripts/subscription","commits_url":"https://api.github.com/repos/javabrett/git-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/javabrett/git-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/javabrett/git-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/javabrett/git-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/javabrett/git-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/javabrett/git-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/javabrett/git-scripts/merges","archive_url":"https://api.github.com/repos/javabrett/git-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/javabrett/git-scripts/downloads","issues_url":"https://api.github.com/repos/javabrett/git-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/javabrett/git-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/javabrett/git-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/javabrett/git-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/javabrett/git-scripts/labels{/name}","releases_url":"https://api.github.com/repos/javabrett/git-scripts/releases{/id}","created_at":"2012-03-06T01:26:32Z","updated_at":"2015-04-26T22:55:45Z","pushed_at":"2016-01-13T22:26:26Z","git_url":"git://github.com/javabrett/git-scripts.git","ssh_url":"git@github.com:javabrett/git-scripts.git","clone_url":"https://github.com/javabrett/git-scripts.git","svn_url":"https://github.com/javabrett/git-scripts","homepage":"","size":158,"stargazers_count":1,"watchers_count":1,"language":"C","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":1,"default_branch":"master"}},"base":{"label":"jwiegley:master","ref":"master","sha":"bf7cc1a7ebc959ac91c4b85aa73971f90da6e9dd","user":{"login":"jwiegley","id":8460,"avatar_url":"https://avatars.githubusercontent.com/u/8460?v=3","gravatar_id":"","url":"https://api.github.com/users/jwiegley","html_url":"https://github.com/jwiegley","followers_url":"https://api.github.com/users/jwiegley/followers","following_url":"https://api.github.com/users/jwiegley/following{/other_user}","gists_url":"https://api.github.com/users/jwiegley/gists{/gist_id}","starred_url":"https://api.github.com/users/jwiegley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwiegley/subscriptions","organizations_url":"https://api.github.com/users/jwiegley/orgs","repos_url":"https://api.github.com/users/jwiegley/repos","events_url":"https://api.github.com/users/jwiegley/events{/privacy}","received_events_url":"https://api.github.com/users/jwiegley/received_events","type":"User","site_admin":false},"repo":{"id":46448,"name":"git-scripts","full_name":"jwiegley/git-scripts","owner":{"login":"jwiegley","id":8460,"avatar_url":"https://avatars.githubusercontent.com/u/8460?v=3","gravatar_id":"","url":"https://api.github.com/users/jwiegley","html_url":"https://github.com/jwiegley","followers_url":"https://api.github.com/users/jwiegley/followers","following_url":"https://api.github.com/users/jwiegley/following{/other_user}","gists_url":"https://api.github.com/users/jwiegley/gists{/gist_id}","starred_url":"https://api.github.com/users/jwiegley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwiegley/subscriptions","organizations_url":"https://api.github.com/users/jwiegley/orgs","repos_url":"https://api.github.com/users/jwiegley/repos","events_url":"https://api.github.com/users/jwiegley/events{/privacy}","received_events_url":"https://api.github.com/users/jwiegley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jwiegley/git-scripts","description":"A bunch of random scripts I've either written, downloaded or clipped from #git.","fork":false,"url":"https://api.github.com/repos/jwiegley/git-scripts","forks_url":"https://api.github.com/repos/jwiegley/git-scripts/forks","keys_url":"https://api.github.com/repos/jwiegley/git-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jwiegley/git-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jwiegley/git-scripts/teams","hooks_url":"https://api.github.com/repos/jwiegley/git-scripts/hooks","issue_events_url":"https://api.github.com/repos/jwiegley/git-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/jwiegley/git-scripts/events","assignees_url":"https://api.github.com/repos/jwiegley/git-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/jwiegley/git-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/jwiegley/git-scripts/tags","blobs_url":"https://api.github.com/repos/jwiegley/git-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jwiegley/git-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jwiegley/git-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/jwiegley/git-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jwiegley/git-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/jwiegley/git-scripts/languages","stargazers_url":"https://api.github.com/repos/jwiegley/git-scripts/stargazers","contributors_url":"https://api.github.com/repos/jwiegley/git-scripts/contributors","subscribers_url":"https://api.github.com/repos/jwiegley/git-scripts/subscribers","subscription_url":"https://api.github.com/repos/jwiegley/git-scripts/subscription","commits_url":"https://api.github.com/repos/jwiegley/git-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/jwiegley/git-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/jwiegley/git-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/jwiegley/git-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/jwiegley/git-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/jwiegley/git-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jwiegley/git-scripts/merges","archive_url":"https://api.github.com/repos/jwiegley/git-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jwiegley/git-scripts/downloads","issues_url":"https://api.github.com/repos/jwiegley/git-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/jwiegley/git-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/jwiegley/git-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/jwiegley/git-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jwiegley/git-scripts/labels{/name}","releases_url":"https://api.github.com/repos/jwiegley/git-scripts/releases{/id}","created_at":"2008-08-27T00:18:19Z","updated_at":"2016-01-18T18:38:45Z","pushed_at":"2016-01-18T22:16:58Z","git_url":"git://github.com/jwiegley/git-scripts.git","ssh_url":"git@github.com:jwiegley/git-scripts.git","clone_url":"https://github.com/jwiegley/git-scripts.git","svn_url":"https://github.com/jwiegley/git-scripts","homepage":"","size":367,"stargazers_count":623,"watchers_count":623,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":102,"mirror_url":null,"open_issues_count":1,"forks":102,"open_issues":1,"watchers":623,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jwiegley/git-scripts/pulls/23"},"html":{"href":"https://github.com/jwiegley/git-scripts/pull/23"},"issue":{"href":"https://api.github.com/repos/jwiegley/git-scripts/issues/23"},"comments":{"href":"https://api.github.com/repos/jwiegley/git-scripts/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/jwiegley/git-scripts/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/jwiegley/git-scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jwiegley/git-scripts/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/jwiegley/git-scripts/statuses/fc48ce909770c572f60346c1ab6da04584402c1e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jwiegley","id":8460,"avatar_url":"https://avatars.githubusercontent.com/u/8460?v=3","gravatar_id":"","url":"https://api.github.com/users/jwiegley","html_url":"https://github.com/jwiegley","followers_url":"https://api.github.com/users/jwiegley/followers","following_url":"https://api.github.com/users/jwiegley/following{/other_user}","gists_url":"https://api.github.com/users/jwiegley/gists{/gist_id}","starred_url":"https://api.github.com/users/jwiegley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwiegley/subscriptions","organizations_url":"https://api.github.com/users/jwiegley/orgs","repos_url":"https://api.github.com/users/jwiegley/repos","events_url":"https://api.github.com/users/jwiegley/events{/privacy}","received_events_url":"https://api.github.com/users/jwiegley/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":0,"changed_files":1}}