{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/git-client-plugin/issues/162","labels_url":"https://api.github.com/repos/jenkinsci/git-client-plugin/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/git-client-plugin/issues/162/comments","events_url":"https://api.github.com/repos/jenkinsci/git-client-plugin/issues/162/events","html_url":"https://github.com/jenkinsci/git-client-plugin/pull/162","id":60209034,"number":162,"title":"[JENKINS-20389] Merge commits trigger uneccessary builds when Include/Exclude regions are defined","user":{"login":"aelsabbahy","id":6783261,"avatar_url":"https://avatars.githubusercontent.com/u/6783261?v=3","gravatar_id":"","url":"https://api.github.com/users/aelsabbahy","html_url":"https://github.com/aelsabbahy","followers_url":"https://api.github.com/users/aelsabbahy/followers","following_url":"https://api.github.com/users/aelsabbahy/following{/other_user}","gists_url":"https://api.github.com/users/aelsabbahy/gists{/gist_id}","starred_url":"https://api.github.com/users/aelsabbahy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aelsabbahy/subscriptions","organizations_url":"https://api.github.com/users/aelsabbahy/orgs","repos_url":"https://api.github.com/users/aelsabbahy/repos","events_url":"https://api.github.com/users/aelsabbahy/events{/privacy}","received_events_url":"https://api.github.com/users/aelsabbahy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-07T14:45:27Z","updated_at":"2015-03-07T19:02:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/git-client-plugin/pulls/162","html_url":"https://github.com/jenkinsci/git-client-plugin/pull/162","diff_url":"https://github.com/jenkinsci/git-client-plugin/pull/162.diff","patch_url":"https://github.com/jenkinsci/git-client-plugin/pull/162.patch"},"body":"Added a new method showChangedPaths.\r\n\r\nThis implementation uses ```git diff --name-only old...new``` instead of ```git log``` to identify changed paths more accurately.\r\n\r\nHere's a good explanation on the difference between how ```git log``` and ```git diff``` work: http://stackoverflow.com/a/7256391\r\n\r\nI'm hoping this method can be leveraged by the Jenkins git-plugin to filter included/excluded paths which would resolve:\r\n* [JENKINS-20389](https://issues.jenkins-ci.org/browse/JENKINS-20389)\r\n* [JENKINS-23606](https://issues.jenkins-ci.org/browse/JENKINS-23606)\r\n\r\n**Note:** Originally, I was going to implement this using ```git log --first-parent```, but @nwholloway pointed out that using ```--first-parent``` would cause issues when a user merges code into into a topic branch and pushes the results to master.\r\n\r\n**Note2:** I don't develop in Java, so these changes probably need another set of eyes before they're merged."},"comment":{"url":"https://api.github.com/repos/jenkinsci/git-client-plugin/issues/comments/77704223","html_url":"https://github.com/jenkinsci/git-client-plugin/pull/162#issuecomment-77704223","issue_url":"https://api.github.com/repos/jenkinsci/git-client-plugin/issues/162","id":77704223,"user":{"login":"jenkinsadmin","id":874715,"avatar_url":"https://avatars.githubusercontent.com/u/874715?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsadmin","html_url":"https://github.com/jenkinsadmin","followers_url":"https://api.github.com/users/jenkinsadmin/followers","following_url":"https://api.github.com/users/jenkinsadmin/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsadmin/subscriptions","organizations_url":"https://api.github.com/users/jenkinsadmin/orgs","repos_url":"https://api.github.com/users/jenkinsadmin/repos","events_url":"https://api.github.com/users/jenkinsadmin/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsadmin/received_events","type":"User","site_admin":false},"created_at":"2015-03-07T19:02:43Z","updated_at":"2015-03-07T19:02:43Z","body":"Thank you for a pull request! Please check [this document](http://jenkins-ci.org/pull-request-greeting) for how the Jenkins project handles pull requests"}}