{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/46774918","id":46774918,"diff_hunk":"@@ -451,6 +451,10 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note\n \n     If no <formulae> are provided, all linked app will be removed.\n \n+  * `unlinkapps --prune`:\n+    Removes links created by `brew linkapps` that are no longer valid, e.g.,\n+    because a formula was removed or apps provided by a formula have changed.","path":"Library/Homebrew/manpages/brew.1.md","position":6,"original_position":6,"commit_id":"0656146ccc02b7345fdfee829c6a77e9f6c806a8","original_commit_id":"0656146ccc02b7345fdfee829c6a77e9f6c806a8","user":{"login":"mikemcquaid","id":125011,"avatar_url":"https://avatars.githubusercontent.com/u/125011?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemcquaid","html_url":"https://github.com/mikemcquaid","followers_url":"https://api.github.com/users/mikemcquaid/followers","following_url":"https://api.github.com/users/mikemcquaid/following{/other_user}","gists_url":"https://api.github.com/users/mikemcquaid/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemcquaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemcquaid/subscriptions","organizations_url":"https://api.github.com/users/mikemcquaid/orgs","repos_url":"https://api.github.com/users/mikemcquaid/repos","events_url":"https://api.github.com/users/mikemcquaid/events{/privacy}","received_events_url":"https://api.github.com/users/mikemcquaid/received_events","type":"User","site_admin":true},"body":"Wondering if this behaviour should just be done by `brew prune`?","created_at":"2015-12-06T19:51:55Z","updated_at":"2015-12-06T19:51:55Z","html_url":"https://github.com/Homebrew/homebrew/pull/46549#discussion_r46774918","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/46549","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/46774918"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/46549#discussion_r46774918"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/46549"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/46549","id":52311095,"html_url":"https://github.com/Homebrew/homebrew/pull/46549","diff_url":"https://github.com/Homebrew/homebrew/pull/46549.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/46549.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/46549","number":46549,"state":"open","locked":false,"title":"(un)linkapps: modernize/simplify code and add --prune","user":{"login":"UniqMartin","id":11892150,"avatar_url":"https://avatars.githubusercontent.com/u/11892150?v=3","gravatar_id":"","url":"https://api.github.com/users/UniqMartin","html_url":"https://github.com/UniqMartin","followers_url":"https://api.github.com/users/UniqMartin/followers","following_url":"https://api.github.com/users/UniqMartin/following{/other_user}","gists_url":"https://api.github.com/users/UniqMartin/gists{/gist_id}","starred_url":"https://api.github.com/users/UniqMartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UniqMartin/subscriptions","organizations_url":"https://api.github.com/users/UniqMartin/orgs","repos_url":"https://api.github.com/users/UniqMartin/repos","events_url":"https://api.github.com/users/UniqMartin/events{/privacy}","received_events_url":"https://api.github.com/users/UniqMartin/received_events","type":"User","site_admin":false},"body":"The first two commits are all about using `Pathname` as much as possible (bringing the code up to current Homebrew standards), reducing duplication, and avoiding external commands in favor of native methods.\r\n\r\nThe third (and last) commit implements `brew unlinkapps --prune` and allows to remove broken symlinks from `/Applications` and `~/Applications` if they were previously created with `brew linkapps`. This part also provides `Homebrew.unlinkapps_prune` that could be used from `cmd/uninstall.rb` et al. to implement automatic pruning of broken symlinks as suggested in #46542 (will be addressed in a separate PR).","created_at":"2015-12-01T20:28:01Z","updated_at":"2015-12-06T19:51:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6d1468b4b3d6fb554b0d64c568563726f34d0cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/46549/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/46549/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/46549/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/0656146ccc02b7345fdfee829c6a77e9f6c806a8","head":{"label":"UniqMartin:modernize-linkapps","ref":"modernize-linkapps","sha":"0656146ccc02b7345fdfee829c6a77e9f6c806a8","user":{"login":"UniqMartin","id":11892150,"avatar_url":"https://avatars.githubusercontent.com/u/11892150?v=3","gravatar_id":"","url":"https://api.github.com/users/UniqMartin","html_url":"https://github.com/UniqMartin","followers_url":"https://api.github.com/users/UniqMartin/followers","following_url":"https://api.github.com/users/UniqMartin/following{/other_user}","gists_url":"https://api.github.com/users/UniqMartin/gists{/gist_id}","starred_url":"https://api.github.com/users/UniqMartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UniqMartin/subscriptions","organizations_url":"https://api.github.com/users/UniqMartin/orgs","repos_url":"https://api.github.com/users/UniqMartin/repos","events_url":"https://api.github.com/users/UniqMartin/events{/privacy}","received_events_url":"https://api.github.com/users/UniqMartin/received_events","type":"User","site_admin":false},"repo":{"id":33837479,"name":"homebrew","full_name":"UniqMartin/homebrew","owner":{"login":"UniqMartin","id":11892150,"avatar_url":"https://avatars.githubusercontent.com/u/11892150?v=3","gravatar_id":"","url":"https://api.github.com/users/UniqMartin","html_url":"https://github.com/UniqMartin","followers_url":"https://api.github.com/users/UniqMartin/followers","following_url":"https://api.github.com/users/UniqMartin/following{/other_user}","gists_url":"https://api.github.com/users/UniqMartin/gists{/gist_id}","starred_url":"https://api.github.com/users/UniqMartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UniqMartin/subscriptions","organizations_url":"https://api.github.com/users/UniqMartin/orgs","repos_url":"https://api.github.com/users/UniqMartin/repos","events_url":"https://api.github.com/users/UniqMartin/events{/privacy}","received_events_url":"https://api.github.com/users/UniqMartin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/UniqMartin/homebrew","description":":package: Personal fork of “The missing package manager for OS X”.","fork":true,"url":"https://api.github.com/repos/UniqMartin/homebrew","forks_url":"https://api.github.com/repos/UniqMartin/homebrew/forks","keys_url":"https://api.github.com/repos/UniqMartin/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UniqMartin/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UniqMartin/homebrew/teams","hooks_url":"https://api.github.com/repos/UniqMartin/homebrew/hooks","issue_events_url":"https://api.github.com/repos/UniqMartin/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/UniqMartin/homebrew/events","assignees_url":"https://api.github.com/repos/UniqMartin/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/UniqMartin/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/UniqMartin/homebrew/tags","blobs_url":"https://api.github.com/repos/UniqMartin/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UniqMartin/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UniqMartin/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/UniqMartin/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UniqMartin/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/UniqMartin/homebrew/languages","stargazers_url":"https://api.github.com/repos/UniqMartin/homebrew/stargazers","contributors_url":"https://api.github.com/repos/UniqMartin/homebrew/contributors","subscribers_url":"https://api.github.com/repos/UniqMartin/homebrew/subscribers","subscription_url":"https://api.github.com/repos/UniqMartin/homebrew/subscription","commits_url":"https://api.github.com/repos/UniqMartin/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/UniqMartin/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/UniqMartin/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/UniqMartin/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/UniqMartin/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/UniqMartin/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UniqMartin/homebrew/merges","archive_url":"https://api.github.com/repos/UniqMartin/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UniqMartin/homebrew/downloads","issues_url":"https://api.github.com/repos/UniqMartin/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/UniqMartin/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/UniqMartin/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/UniqMartin/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UniqMartin/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/UniqMartin/homebrew/releases{/id}","created_at":"2015-04-12T23:04:38Z","updated_at":"2015-09-19T18:30:35Z","pushed_at":"2015-12-05T12:03:19Z","git_url":"git://github.com/UniqMartin/homebrew.git","ssh_url":"git@github.com:UniqMartin/homebrew.git","clone_url":"https://github.com/UniqMartin/homebrew.git","svn_url":"https://github.com/UniqMartin/homebrew","homepage":"http://brew.sh","size":63881,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"Homebrew:master","ref":"master","sha":"19cae6daee368186913ffab6194c6299a12cbfde","user":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"repo":{"id":206084,"name":"homebrew","full_name":"Homebrew/homebrew","owner":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Homebrew/homebrew","description":":beer: The missing package manager for OS X.","fork":false,"url":"https://api.github.com/repos/Homebrew/homebrew","forks_url":"https://api.github.com/repos/Homebrew/homebrew/forks","keys_url":"https://api.github.com/repos/Homebrew/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Homebrew/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Homebrew/homebrew/teams","hooks_url":"https://api.github.com/repos/Homebrew/homebrew/hooks","issue_events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/Homebrew/homebrew/events","assignees_url":"https://api.github.com/repos/Homebrew/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/Homebrew/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/Homebrew/homebrew/tags","blobs_url":"https://api.github.com/repos/Homebrew/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Homebrew/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Homebrew/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/Homebrew/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/Homebrew/homebrew/languages","stargazers_url":"https://api.github.com/repos/Homebrew/homebrew/stargazers","contributors_url":"https://api.github.com/repos/Homebrew/homebrew/contributors","subscribers_url":"https://api.github.com/repos/Homebrew/homebrew/subscribers","subscription_url":"https://api.github.com/repos/Homebrew/homebrew/subscription","commits_url":"https://api.github.com/repos/Homebrew/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/Homebrew/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/Homebrew/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/Homebrew/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Homebrew/homebrew/merges","archive_url":"https://api.github.com/repos/Homebrew/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Homebrew/homebrew/downloads","issues_url":"https://api.github.com/repos/Homebrew/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/Homebrew/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/Homebrew/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/Homebrew/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Homebrew/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/Homebrew/homebrew/releases{/id}","created_at":"2009-05-20T19:38:37Z","updated_at":"2015-12-06T17:09:06Z","pushed_at":"2015-12-06T19:28:07Z","git_url":"git://github.com/Homebrew/homebrew.git","ssh_url":"git@github.com:Homebrew/homebrew.git","clone_url":"https://github.com/Homebrew/homebrew.git","svn_url":"https://github.com/Homebrew/homebrew","homepage":"http://brew.sh","size":1407587,"stargazers_count":27693,"watchers_count":27693,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":13727,"mirror_url":null,"open_issues_count":533,"forks":13727,"open_issues":533,"watchers":27693,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/46549"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/46549"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/46549"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/46549/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/46549/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/46549/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew/statuses/0656146ccc02b7345fdfee829c6a77e9f6c806a8"}}}}