{"action":"created","issue":{"url":"https://api.github.com/repos/scottchiefbaker/diff-so-fancy/issues/3","repository_url":"https://api.github.com/repos/scottchiefbaker/diff-so-fancy","labels_url":"https://api.github.com/repos/scottchiefbaker/diff-so-fancy/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/scottchiefbaker/diff-so-fancy/issues/3/comments","events_url":"https://api.github.com/repos/scottchiefbaker/diff-so-fancy/issues/3/events","html_url":"https://github.com/scottchiefbaker/diff-so-fancy/pull/3","id":160777796,"number":3,"title":"Fix header line ordering","user":{"login":"OJFord","id":3946014,"avatar_url":"https://avatars.githubusercontent.com/u/3946014?v=3","gravatar_id":"","url":"https://api.github.com/users/OJFord","html_url":"https://github.com/OJFord","followers_url":"https://api.github.com/users/OJFord/followers","following_url":"https://api.github.com/users/OJFord/following{/other_user}","gists_url":"https://api.github.com/users/OJFord/gists{/gist_id}","starred_url":"https://api.github.com/users/OJFord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OJFord/subscriptions","organizations_url":"https://api.github.com/users/OJFord/orgs","repos_url":"https://api.github.com/users/OJFord/repos","events_url":"https://api.github.com/users/OJFord/events{/privacy}","received_events_url":"https://api.github.com/users/OJFord/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-16T22:45:39Z","updated_at":"2016-06-29T15:55:04Z","closed_at":"2016-06-29T15:55:04Z","pull_request":{"url":"https://api.github.com/repos/scottchiefbaker/diff-so-fancy/pulls/3","html_url":"https://github.com/scottchiefbaker/diff-so-fancy/pull/3","diff_url":"https://github.com/scottchiefbaker/diff-so-fancy/pull/3.diff","patch_url":"https://github.com/scottchiefbaker/diff-so-fancy/pull/3.patch"},"body":"Following @ peff's feedback that we'll need a 1:1 semantic mapping of lines in the `--patch` filter to fix the issue raised in #172, this patch ensures that we always have 'tight' headers - dashed line, deleted/modified/etc., dashed line - with any surplus space _around_ it but not inside.\r\n```\r\n$ git add --patch\r\n\r\n\r\n─────────────────────────────────────────────────────────────────────────────────────────\r\nmodified: appveyor.yml\r\n─────────────────────────────────────────────────────────────────────────────────────────\r\n@ appveyor.yml:3 @\r\n```\r\nor\r\n```\r\n$ git add --patch\r\n\r\n─────────────────────────────────────────────────────────────────────────────────────────\r\ndeleted: appveyor.yml\r\n─────────────────────────────────────────────────────────────────────────────────────────\r\n\r\n@ appveyor.yml:3 @\r\n```\r\n\r\n\r\nWhen not in `--patch-mode`, the output remains free of whitespace:\r\n```\r\n$ git diff\r\n─────────────────────────────────────────────────────────────────────────────────────────\r\nmodified: lib/diff-so-fancy.pl\r\n─────────────────────────────────────────────────────────────────────────────────────────\r\n@ diff-so-fancy.pl:421 @ sub file_change_string {\r\n```"},"comment":{"url":"https://api.github.com/repos/scottchiefbaker/diff-so-fancy/issues/comments/229401479","html_url":"https://github.com/scottchiefbaker/diff-so-fancy/pull/3#issuecomment-229401479","issue_url":"https://api.github.com/repos/scottchiefbaker/diff-so-fancy/issues/3","id":229401479,"user":{"login":"scottchiefbaker","id":3429760,"avatar_url":"https://avatars.githubusercontent.com/u/3429760?v=3","gravatar_id":"","url":"https://api.github.com/users/scottchiefbaker","html_url":"https://github.com/scottchiefbaker","followers_url":"https://api.github.com/users/scottchiefbaker/followers","following_url":"https://api.github.com/users/scottchiefbaker/following{/other_user}","gists_url":"https://api.github.com/users/scottchiefbaker/gists{/gist_id}","starred_url":"https://api.github.com/users/scottchiefbaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottchiefbaker/subscriptions","organizations_url":"https://api.github.com/users/scottchiefbaker/orgs","repos_url":"https://api.github.com/users/scottchiefbaker/repos","events_url":"https://api.github.com/users/scottchiefbaker/events{/privacy}","received_events_url":"https://api.github.com/users/scottchiefbaker/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T15:55:04Z","updated_at":"2016-06-29T15:55:04Z","body":"This is a creative solution, but I think ultimately the fault lies with git itself. Discussion is in #35 of d-s-f. Closing this for now."}}
{"actor":{"display_login":"scottchiefbaker"}}