{"action":"created","issue":{"url":"https://api.github.com/repos/twaugh/patchutils/issues/3","labels_url":"https://api.github.com/repos/twaugh/patchutils/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/twaugh/patchutils/issues/3/comments","events_url":"https://api.github.com/repos/twaugh/patchutils/issues/3/events","html_url":"https://github.com/twaugh/patchutils/issues/3","id":60087043,"number":3,"title":"grepdiff: allow to search only additions/deletions","user":{"login":"KangOl","id":38731,"avatar_url":"https://avatars.githubusercontent.com/u/38731?v=3","gravatar_id":"","url":"https://api.github.com/users/KangOl","html_url":"https://github.com/KangOl","followers_url":"https://api.github.com/users/KangOl/followers","following_url":"https://api.github.com/users/KangOl/following{/other_user}","gists_url":"https://api.github.com/users/KangOl/gists{/gist_id}","starred_url":"https://api.github.com/users/KangOl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KangOl/subscriptions","organizations_url":"https://api.github.com/users/KangOl/orgs","repos_url":"https://api.github.com/users/KangOl/repos","events_url":"https://api.github.com/users/KangOl/events{/privacy}","received_events_url":"https://api.github.com/users/KangOl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/twaugh/patchutils/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-06T10:53:51Z","updated_at":"2015-03-06T11:47:08Z","closed_at":null,"body":"It would be useful that grep only match addition or deletions."},"comment":{"url":"https://api.github.com/repos/twaugh/patchutils/issues/comments/77547245","html_url":"https://github.com/twaugh/patchutils/issues/3#issuecomment-77547245","issue_url":"https://api.github.com/repos/twaugh/patchutils/issues/3","id":77547245,"user":{"login":"twaugh","id":6985468,"avatar_url":"https://avatars.githubusercontent.com/u/6985468?v=3","gravatar_id":"","url":"https://api.github.com/users/twaugh","html_url":"https://github.com/twaugh","followers_url":"https://api.github.com/users/twaugh/followers","following_url":"https://api.github.com/users/twaugh/following{/other_user}","gists_url":"https://api.github.com/users/twaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/twaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twaugh/subscriptions","organizations_url":"https://api.github.com/users/twaugh/orgs","repos_url":"https://api.github.com/users/twaugh/repos","events_url":"https://api.github.com/users/twaugh/events{/privacy}","received_events_url":"https://api.github.com/users/twaugh/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T11:47:08Z","updated_at":"2015-03-06T11:47:08Z","body":"I see. Yes, that makes sense. Perhaps it could be --only-match=add|remove|change|all, default is 'all'.\r\n\r\nThen --only-match=add would only match hunks that add the matching string, and likewise for --only-match=remove. Either would match for --only-match=change, and additionally --only-match=all matches context lines. Does that sound better?"}}