{"action":"opened","number":4198,"pull_request":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4198","id":41224484,"html_url":"https://github.com/robbyrussell/oh-my-zsh/pull/4198","diff_url":"https://github.com/robbyrussell/oh-my-zsh/pull/4198.diff","patch_url":"https://github.com/robbyrussell/oh-my-zsh/pull/4198.patch","issue_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4198","number":4198,"state":"open","locked":false,"title":"git plugin: make gclean safer, introduce gpristine","user":{"login":"matjack1","id":65402,"avatar_url":"https://avatars.githubusercontent.com/u/65402?v=3","gravatar_id":"","url":"https://api.github.com/users/matjack1","html_url":"https://github.com/matjack1","followers_url":"https://api.github.com/users/matjack1/followers","following_url":"https://api.github.com/users/matjack1/following{/other_user}","gists_url":"https://api.github.com/users/matjack1/gists{/gist_id}","starred_url":"https://api.github.com/users/matjack1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matjack1/subscriptions","organizations_url":"https://api.github.com/users/matjack1/orgs","repos_url":"https://api.github.com/users/matjack1/repos","events_url":"https://api.github.com/users/matjack1/events{/privacy}","received_events_url":"https://api.github.com/users/matjack1/received_events","type":"User","site_admin":false},"body":"I think it's safer to remove the ```-x``` flag from the git clean command from the default ```gclean```, because it deletes also the git-ignored files, which are not listed in the status. I think the ```gclean``` name sounds like it's a simple clean, not a complete reset of the tree, which is a bit more \"dangerous\" as potentially it deletes more.\r\n\r\nI've then added a ```gpristine``` command to return to a pristine state, which is more explicit than a simple clean.","created_at":"2015-07-30T11:41:00Z","updated_at":"2015-07-30T11:41:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4198/commits","review_comments_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4198/comments","review_comment_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4198/comments","statuses_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/statuses/a2b574bc9edc4f548ca7eb3a8116004be7252092","head":{"label":"matjack1:gclean-gpristine","ref":"gclean-gpristine","sha":"a2b574bc9edc4f548ca7eb3a8116004be7252092","user":{"login":"matjack1","id":65402,"avatar_url":"https://avatars.githubusercontent.com/u/65402?v=3","gravatar_id":"","url":"https://api.github.com/users/matjack1","html_url":"https://github.com/matjack1","followers_url":"https://api.github.com/users/matjack1/followers","following_url":"https://api.github.com/users/matjack1/following{/other_user}","gists_url":"https://api.github.com/users/matjack1/gists{/gist_id}","starred_url":"https://api.github.com/users/matjack1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matjack1/subscriptions","organizations_url":"https://api.github.com/users/matjack1/orgs","repos_url":"https://api.github.com/users/matjack1/repos","events_url":"https://api.github.com/users/matjack1/events{/privacy}","received_events_url":"https://api.github.com/users/matjack1/received_events","type":"User","site_admin":false},"repo":{"id":39947175,"name":"oh-my-zsh","full_name":"matjack1/oh-my-zsh","owner":{"login":"matjack1","id":65402,"avatar_url":"https://avatars.githubusercontent.com/u/65402?v=3","gravatar_id":"","url":"https://api.github.com/users/matjack1","html_url":"https://github.com/matjack1","followers_url":"https://api.github.com/users/matjack1/followers","following_url":"https://api.github.com/users/matjack1/following{/other_user}","gists_url":"https://api.github.com/users/matjack1/gists{/gist_id}","starred_url":"https://api.github.com/users/matjack1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matjack1/subscriptions","organizations_url":"https://api.github.com/users/matjack1/orgs","repos_url":"https://api.github.com/users/matjack1/repos","events_url":"https://api.github.com/users/matjack1/events{/privacy}","received_events_url":"https://api.github.com/users/matjack1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matjack1/oh-my-zsh","description":"A delightful community-driven framework for managing your zsh configuration. Includes 180+ optional plugins (rails, git, OSX, hub, capistrano, brew, ant, php, python, etc), over 120 themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.","fork":true,"url":"https://api.github.com/repos/matjack1/oh-my-zsh","forks_url":"https://api.github.com/repos/matjack1/oh-my-zsh/forks","keys_url":"https://api.github.com/repos/matjack1/oh-my-zsh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matjack1/oh-my-zsh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matjack1/oh-my-zsh/teams","hooks_url":"https://api.github.com/repos/matjack1/oh-my-zsh/hooks","issue_events_url":"https://api.github.com/repos/matjack1/oh-my-zsh/issues/events{/number}","events_url":"https://api.github.com/repos/matjack1/oh-my-zsh/events","assignees_url":"https://api.github.com/repos/matjack1/oh-my-zsh/assignees{/user}","branches_url":"https://api.github.com/repos/matjack1/oh-my-zsh/branches{/branch}","tags_url":"https://api.github.com/repos/matjack1/oh-my-zsh/tags","blobs_url":"https://api.github.com/repos/matjack1/oh-my-zsh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matjack1/oh-my-zsh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matjack1/oh-my-zsh/git/refs{/sha}","trees_url":"https://api.github.com/repos/matjack1/oh-my-zsh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matjack1/oh-my-zsh/statuses/{sha}","languages_url":"https://api.github.com/repos/matjack1/oh-my-zsh/languages","stargazers_url":"https://api.github.com/repos/matjack1/oh-my-zsh/stargazers","contributors_url":"https://api.github.com/repos/matjack1/oh-my-zsh/contributors","subscribers_url":"https://api.github.com/repos/matjack1/oh-my-zsh/subscribers","subscription_url":"https://api.github.com/repos/matjack1/oh-my-zsh/subscription","commits_url":"https://api.github.com/repos/matjack1/oh-my-zsh/commits{/sha}","git_commits_url":"https://api.github.com/repos/matjack1/oh-my-zsh/git/commits{/sha}","comments_url":"https://api.github.com/repos/matjack1/oh-my-zsh/comments{/number}","issue_comment_url":"https://api.github.com/repos/matjack1/oh-my-zsh/issues/comments{/number}","contents_url":"https://api.github.com/repos/matjack1/oh-my-zsh/contents/{+path}","compare_url":"https://api.github.com/repos/matjack1/oh-my-zsh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matjack1/oh-my-zsh/merges","archive_url":"https://api.github.com/repos/matjack1/oh-my-zsh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matjack1/oh-my-zsh/downloads","issues_url":"https://api.github.com/repos/matjack1/oh-my-zsh/issues{/number}","pulls_url":"https://api.github.com/repos/matjack1/oh-my-zsh/pulls{/number}","milestones_url":"https://api.github.com/repos/matjack1/oh-my-zsh/milestones{/number}","notifications_url":"https://api.github.com/repos/matjack1/oh-my-zsh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matjack1/oh-my-zsh/labels{/name}","releases_url":"https://api.github.com/repos/matjack1/oh-my-zsh/releases{/id}","created_at":"2015-07-30T11:30:16Z","updated_at":"2015-07-30T11:30:18Z","pushed_at":"2015-07-30T11:36:43Z","git_url":"git://github.com/matjack1/oh-my-zsh.git","ssh_url":"git@github.com:matjack1/oh-my-zsh.git","clone_url":"https://github.com/matjack1/oh-my-zsh.git","svn_url":"https://github.com/matjack1/oh-my-zsh","homepage":"http://ohmyz.sh/","size":35165,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"robbyrussell:master","ref":"master","sha":"3d5b3430fd9da12f6e33f534e487fe9b18928ac7","user":{"login":"robbyrussell","id":257,"avatar_url":"https://avatars.githubusercontent.com/u/257?v=3","gravatar_id":"","url":"https://api.github.com/users/robbyrussell","html_url":"https://github.com/robbyrussell","followers_url":"https://api.github.com/users/robbyrussell/followers","following_url":"https://api.github.com/users/robbyrussell/following{/other_user}","gists_url":"https://api.github.com/users/robbyrussell/gists{/gist_id}","starred_url":"https://api.github.com/users/robbyrussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbyrussell/subscriptions","organizations_url":"https://api.github.com/users/robbyrussell/orgs","repos_url":"https://api.github.com/users/robbyrussell/repos","events_url":"https://api.github.com/users/robbyrussell/events{/privacy}","received_events_url":"https://api.github.com/users/robbyrussell/received_events","type":"User","site_admin":false},"repo":{"id":291137,"name":"oh-my-zsh","full_name":"robbyrussell/oh-my-zsh","owner":{"login":"robbyrussell","id":257,"avatar_url":"https://avatars.githubusercontent.com/u/257?v=3","gravatar_id":"","url":"https://api.github.com/users/robbyrussell","html_url":"https://github.com/robbyrussell","followers_url":"https://api.github.com/users/robbyrussell/followers","following_url":"https://api.github.com/users/robbyrussell/following{/other_user}","gists_url":"https://api.github.com/users/robbyrussell/gists{/gist_id}","starred_url":"https://api.github.com/users/robbyrussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbyrussell/subscriptions","organizations_url":"https://api.github.com/users/robbyrussell/orgs","repos_url":"https://api.github.com/users/robbyrussell/repos","events_url":"https://api.github.com/users/robbyrussell/events{/privacy}","received_events_url":"https://api.github.com/users/robbyrussell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robbyrussell/oh-my-zsh","description":"A delightful community-driven framework for managing your zsh configuration. Includes 180+ optional plugins (rails, git, OSX, hub, capistrano, brew, ant, php, python, etc), over 120 themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.","fork":false,"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh","forks_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/forks","keys_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/teams","hooks_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/hooks","issue_events_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/events{/number}","events_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/events","assignees_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/assignees{/user}","branches_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/branches{/branch}","tags_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/tags","blobs_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/git/refs{/sha}","trees_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/statuses/{sha}","languages_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/languages","stargazers_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/stargazers","contributors_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/contributors","subscribers_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/subscribers","subscription_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/subscription","commits_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/commits{/sha}","git_commits_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/git/commits{/sha}","comments_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/comments{/number}","issue_comment_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/comments{/number}","contents_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/contents/{+path}","compare_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/merges","archive_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/downloads","issues_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues{/number}","pulls_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls{/number}","milestones_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/milestones{/number}","notifications_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/labels{/name}","releases_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/releases{/id}","created_at":"2009-08-28T18:15:37Z","updated_at":"2015-07-30T10:49:01Z","pushed_at":"2015-07-30T11:41:01Z","git_url":"git://github.com/robbyrussell/oh-my-zsh.git","ssh_url":"git@github.com:robbyrussell/oh-my-zsh.git","clone_url":"https://github.com/robbyrussell/oh-my-zsh.git","svn_url":"https://github.com/robbyrussell/oh-my-zsh","homepage":"http://ohmyz.sh/","size":35165,"stargazers_count":26268,"watchers_count":26268,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7899,"mirror_url":null,"open_issues_count":605,"forks":7899,"open_issues":605,"watchers":26268,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4198"},"html":{"href":"https://github.com/robbyrussell/oh-my-zsh/pull/4198"},"issue":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4198"},"comments":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4198/comments"},"review_comments":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4198/comments"},"review_comment":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4198/commits"},"statuses":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/statuses/a2b574bc9edc4f548ca7eb3a8116004be7252092"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}