{"action":"created","comment":{"url":"https://api.github.com/repos/composer/composer/pulls/comments/59398578","id":59398578,"diff_hunk":"@@ -20,10 +20,36 @@\n class Platform\n {\n     /**\n+     * Parses magic constructs like tildes in paths. Right now only tildes are supported but we could add support for \n+     * environment variables on various platforms.\n+     *\n+     * @param string $path\n+     * @return string\n+     */\n+    public static function expandPath($path)\n+    {\n+        // Tilde expansion for *nix\n+        if (!self::isWindows() && 0 === strpos($path, '~/')) {","path":"src/Composer/Util/Platform.php","position":13,"original_position":13,"commit_id":"2e2cec29bd3b5625954e4a7c2928903471112eea","original_commit_id":"2e2cec29bd3b5625954e4a7c2928903471112eea","user":{"login":"curry684","id":1455673,"avatar_url":"https://avatars.githubusercontent.com/u/1455673?v=3","gravatar_id":"","url":"https://api.github.com/users/curry684","html_url":"https://github.com/curry684","followers_url":"https://api.github.com/users/curry684/followers","following_url":"https://api.github.com/users/curry684/following{/other_user}","gists_url":"https://api.github.com/users/curry684/gists{/gist_id}","starred_url":"https://api.github.com/users/curry684/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curry684/subscriptions","organizations_url":"https://api.github.com/users/curry684/orgs","repos_url":"https://api.github.com/users/curry684/repos","events_url":"https://api.github.com/users/curry684/events{/privacy}","received_events_url":"https://api.github.com/users/curry684/received_events","type":"User","site_admin":false},"body":"Yeah I got al my personal crap there, but we have a sort of 'company convention' that all git checkouts go to `C:\\Projects` because we've been doing that for 10 years and it just works hehe.\r\n\r\nI'll add the Win support later. Putting the function in Platform was intentional indeed to make it usable in a (lot) more locations where it makes sense.","created_at":"2016-04-12T15:37:39Z","updated_at":"2016-04-12T15:37:39Z","html_url":"https://github.com/composer/composer/pull/5184#discussion_r59398578","pull_request_url":"https://api.github.com/repos/composer/composer/pulls/5184","_links":{"self":{"href":"https://api.github.com/repos/composer/composer/pulls/comments/59398578"},"html":{"href":"https://github.com/composer/composer/pull/5184#discussion_r59398578"},"pull_request":{"href":"https://api.github.com/repos/composer/composer/pulls/5184"}}},"pull_request":{"url":"https://api.github.com/repos/composer/composer/pulls/5184","id":66143729,"html_url":"https://github.com/composer/composer/pull/5184","diff_url":"https://github.com/composer/composer/pull/5184.diff","patch_url":"https://github.com/composer/composer/pull/5184.patch","issue_url":"https://api.github.com/repos/composer/composer/issues/5184","number":5184,"state":"open","locked":false,"title":"Home expansion","user":{"login":"curry684","id":1455673,"avatar_url":"https://avatars.githubusercontent.com/u/1455673?v=3","gravatar_id":"","url":"https://api.github.com/users/curry684","html_url":"https://github.com/curry684","followers_url":"https://api.github.com/users/curry684/followers","following_url":"https://api.github.com/users/curry684/following{/other_user}","gists_url":"https://api.github.com/users/curry684/gists{/gist_id}","starred_url":"https://api.github.com/users/curry684/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curry684/subscriptions","organizations_url":"https://api.github.com/users/curry684/orgs","repos_url":"https://api.github.com/users/curry684/repos","events_url":"https://api.github.com/users/curry684/events{/privacy}","received_events_url":"https://api.github.com/users/curry684/received_events","type":"User","site_admin":false},"body":"Allows using tildes in path repositories for easier sharing of path repositories between multiple team members. For example a path repository to `~/git/mysubproject/*` will automatically load all those packages from the developer's home folder.","created_at":"2016-04-12T11:48:26Z","updated_at":"2016-04-12T15:37:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57e56ae4761b1e484dfc6400d3d2d14094914c03","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/composer/composer/pulls/5184/commits","review_comments_url":"https://api.github.com/repos/composer/composer/pulls/5184/comments","review_comment_url":"https://api.github.com/repos/composer/composer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/composer/composer/issues/5184/comments","statuses_url":"https://api.github.com/repos/composer/composer/statuses/2e2cec29bd3b5625954e4a7c2928903471112eea","head":{"label":"curry684:home-expansion","ref":"home-expansion","sha":"2e2cec29bd3b5625954e4a7c2928903471112eea","user":{"login":"curry684","id":1455673,"avatar_url":"https://avatars.githubusercontent.com/u/1455673?v=3","gravatar_id":"","url":"https://api.github.com/users/curry684","html_url":"https://github.com/curry684","followers_url":"https://api.github.com/users/curry684/followers","following_url":"https://api.github.com/users/curry684/following{/other_user}","gists_url":"https://api.github.com/users/curry684/gists{/gist_id}","starred_url":"https://api.github.com/users/curry684/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curry684/subscriptions","organizations_url":"https://api.github.com/users/curry684/orgs","repos_url":"https://api.github.com/users/curry684/repos","events_url":"https://api.github.com/users/curry684/events{/privacy}","received_events_url":"https://api.github.com/users/curry684/received_events","type":"User","site_admin":false},"repo":{"id":44856484,"name":"composer","full_name":"curry684/composer","owner":{"login":"curry684","id":1455673,"avatar_url":"https://avatars.githubusercontent.com/u/1455673?v=3","gravatar_id":"","url":"https://api.github.com/users/curry684","html_url":"https://github.com/curry684","followers_url":"https://api.github.com/users/curry684/followers","following_url":"https://api.github.com/users/curry684/following{/other_user}","gists_url":"https://api.github.com/users/curry684/gists{/gist_id}","starred_url":"https://api.github.com/users/curry684/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curry684/subscriptions","organizations_url":"https://api.github.com/users/curry684/orgs","repos_url":"https://api.github.com/users/curry684/repos","events_url":"https://api.github.com/users/curry684/events{/privacy}","received_events_url":"https://api.github.com/users/curry684/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/curry684/composer","description":"Dependency Manager for PHP","fork":true,"url":"https://api.github.com/repos/curry684/composer","forks_url":"https://api.github.com/repos/curry684/composer/forks","keys_url":"https://api.github.com/repos/curry684/composer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/curry684/composer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/curry684/composer/teams","hooks_url":"https://api.github.com/repos/curry684/composer/hooks","issue_events_url":"https://api.github.com/repos/curry684/composer/issues/events{/number}","events_url":"https://api.github.com/repos/curry684/composer/events","assignees_url":"https://api.github.com/repos/curry684/composer/assignees{/user}","branches_url":"https://api.github.com/repos/curry684/composer/branches{/branch}","tags_url":"https://api.github.com/repos/curry684/composer/tags","blobs_url":"https://api.github.com/repos/curry684/composer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/curry684/composer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/curry684/composer/git/refs{/sha}","trees_url":"https://api.github.com/repos/curry684/composer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/curry684/composer/statuses/{sha}","languages_url":"https://api.github.com/repos/curry684/composer/languages","stargazers_url":"https://api.github.com/repos/curry684/composer/stargazers","contributors_url":"https://api.github.com/repos/curry684/composer/contributors","subscribers_url":"https://api.github.com/repos/curry684/composer/subscribers","subscription_url":"https://api.github.com/repos/curry684/composer/subscription","commits_url":"https://api.github.com/repos/curry684/composer/commits{/sha}","git_commits_url":"https://api.github.com/repos/curry684/composer/git/commits{/sha}","comments_url":"https://api.github.com/repos/curry684/composer/comments{/number}","issue_comment_url":"https://api.github.com/repos/curry684/composer/issues/comments{/number}","contents_url":"https://api.github.com/repos/curry684/composer/contents/{+path}","compare_url":"https://api.github.com/repos/curry684/composer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/curry684/composer/merges","archive_url":"https://api.github.com/repos/curry684/composer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/curry684/composer/downloads","issues_url":"https://api.github.com/repos/curry684/composer/issues{/number}","pulls_url":"https://api.github.com/repos/curry684/composer/pulls{/number}","milestones_url":"https://api.github.com/repos/curry684/composer/milestones{/number}","notifications_url":"https://api.github.com/repos/curry684/composer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/curry684/composer/labels{/name}","releases_url":"https://api.github.com/repos/curry684/composer/releases{/id}","deployments_url":"https://api.github.com/repos/curry684/composer/deployments","created_at":"2015-10-24T07:20:24Z","updated_at":"2016-01-24T06:19:36Z","pushed_at":"2016-04-12T11:44:55Z","git_url":"git://github.com/curry684/composer.git","ssh_url":"git@github.com:curry684/composer.git","clone_url":"https://github.com/curry684/composer.git","svn_url":"https://github.com/curry684/composer","homepage":"http://getcomposer.org/","size":12230,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"composer:master","ref":"master","sha":"de7123097e2e8a82997f41a844bee297dafcd4f0","user":{"login":"composer","id":837015,"avatar_url":"https://avatars.githubusercontent.com/u/837015?v=3","gravatar_id":"","url":"https://api.github.com/users/composer","html_url":"https://github.com/composer","followers_url":"https://api.github.com/users/composer/followers","following_url":"https://api.github.com/users/composer/following{/other_user}","gists_url":"https://api.github.com/users/composer/gists{/gist_id}","starred_url":"https://api.github.com/users/composer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/composer/subscriptions","organizations_url":"https://api.github.com/users/composer/orgs","repos_url":"https://api.github.com/users/composer/repos","events_url":"https://api.github.com/users/composer/events{/privacy}","received_events_url":"https://api.github.com/users/composer/received_events","type":"Organization","site_admin":false},"repo":{"id":1864363,"name":"composer","full_name":"composer/composer","owner":{"login":"composer","id":837015,"avatar_url":"https://avatars.githubusercontent.com/u/837015?v=3","gravatar_id":"","url":"https://api.github.com/users/composer","html_url":"https://github.com/composer","followers_url":"https://api.github.com/users/composer/followers","following_url":"https://api.github.com/users/composer/following{/other_user}","gists_url":"https://api.github.com/users/composer/gists{/gist_id}","starred_url":"https://api.github.com/users/composer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/composer/subscriptions","organizations_url":"https://api.github.com/users/composer/orgs","repos_url":"https://api.github.com/users/composer/repos","events_url":"https://api.github.com/users/composer/events{/privacy}","received_events_url":"https://api.github.com/users/composer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/composer/composer","description":"Dependency Manager for PHP","fork":false,"url":"https://api.github.com/repos/composer/composer","forks_url":"https://api.github.com/repos/composer/composer/forks","keys_url":"https://api.github.com/repos/composer/composer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/composer/composer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/composer/composer/teams","hooks_url":"https://api.github.com/repos/composer/composer/hooks","issue_events_url":"https://api.github.com/repos/composer/composer/issues/events{/number}","events_url":"https://api.github.com/repos/composer/composer/events","assignees_url":"https://api.github.com/repos/composer/composer/assignees{/user}","branches_url":"https://api.github.com/repos/composer/composer/branches{/branch}","tags_url":"https://api.github.com/repos/composer/composer/tags","blobs_url":"https://api.github.com/repos/composer/composer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/composer/composer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/composer/composer/git/refs{/sha}","trees_url":"https://api.github.com/repos/composer/composer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/composer/composer/statuses/{sha}","languages_url":"https://api.github.com/repos/composer/composer/languages","stargazers_url":"https://api.github.com/repos/composer/composer/stargazers","contributors_url":"https://api.github.com/repos/composer/composer/contributors","subscribers_url":"https://api.github.com/repos/composer/composer/subscribers","subscription_url":"https://api.github.com/repos/composer/composer/subscription","commits_url":"https://api.github.com/repos/composer/composer/commits{/sha}","git_commits_url":"https://api.github.com/repos/composer/composer/git/commits{/sha}","comments_url":"https://api.github.com/repos/composer/composer/comments{/number}","issue_comment_url":"https://api.github.com/repos/composer/composer/issues/comments{/number}","contents_url":"https://api.github.com/repos/composer/composer/contents/{+path}","compare_url":"https://api.github.com/repos/composer/composer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/composer/composer/merges","archive_url":"https://api.github.com/repos/composer/composer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/composer/composer/downloads","issues_url":"https://api.github.com/repos/composer/composer/issues{/number}","pulls_url":"https://api.github.com/repos/composer/composer/pulls{/number}","milestones_url":"https://api.github.com/repos/composer/composer/milestones{/number}","notifications_url":"https://api.github.com/repos/composer/composer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/composer/composer/labels{/name}","releases_url":"https://api.github.com/repos/composer/composer/releases{/id}","deployments_url":"https://api.github.com/repos/composer/composer/deployments","created_at":"2011-06-08T08:53:00Z","updated_at":"2016-04-12T14:43:09Z","pushed_at":"2016-04-12T11:48:26Z","git_url":"git://github.com/composer/composer.git","ssh_url":"git@github.com:composer/composer.git","clone_url":"https://github.com/composer/composer.git","svn_url":"https://github.com/composer/composer","homepage":"https://getcomposer.org/","size":18706,"stargazers_count":7493,"watchers_count":7493,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2061,"mirror_url":null,"open_issues_count":314,"forks":2061,"open_issues":314,"watchers":7493,"default_branch":"1.0"}},"_links":{"self":{"href":"https://api.github.com/repos/composer/composer/pulls/5184"},"html":{"href":"https://github.com/composer/composer/pull/5184"},"issue":{"href":"https://api.github.com/repos/composer/composer/issues/5184"},"comments":{"href":"https://api.github.com/repos/composer/composer/issues/5184/comments"},"review_comments":{"href":"https://api.github.com/repos/composer/composer/pulls/5184/comments"},"review_comment":{"href":"https://api.github.com/repos/composer/composer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/composer/composer/pulls/5184/commits"},"statuses":{"href":"https://api.github.com/repos/composer/composer/statuses/2e2cec29bd3b5625954e4a7c2928903471112eea"}}}}