{"action":"created","issue":{"url":"https://api.github.com/repos/airblade/vim-gitgutter/issues/257","labels_url":"https://api.github.com/repos/airblade/vim-gitgutter/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/airblade/vim-gitgutter/issues/257/comments","events_url":"https://api.github.com/repos/airblade/vim-gitgutter/issues/257/events","html_url":"https://github.com/airblade/vim-gitgutter/pull/257","id":95814697,"number":257,"title":"Provide a way to see staged changes","user":{"login":"somini","id":1750665,"avatar_url":"https://avatars.githubusercontent.com/u/1750665?v=3","gravatar_id":"","url":"https://api.github.com/users/somini","html_url":"https://github.com/somini","followers_url":"https://api.github.com/users/somini/followers","following_url":"https://api.github.com/users/somini/following{/other_user}","gists_url":"https://api.github.com/users/somini/gists{/gist_id}","starred_url":"https://api.github.com/users/somini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somini/subscriptions","organizations_url":"https://api.github.com/users/somini/orgs","repos_url":"https://api.github.com/users/somini/repos","events_url":"https://api.github.com/users/somini/events{/privacy}","received_events_url":"https://api.github.com/users/somini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-07-18T10:56:48Z","updated_at":"2015-08-31T23:42:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/airblade/vim-gitgutter/pulls/257","html_url":"https://github.com/airblade/vim-gitgutter/pull/257","diff_url":"https://github.com/airblade/vim-gitgutter/pull/257.diff","patch_url":"https://github.com/airblade/vim-gitgutter/pull/257.patch"},"body":"As referenced in #249 and #252.\r\n\r\nThis addition is disabled by default, per the `g:gitgutter_cached` variable. Well, unless it runs the `gitgutter#cached_enable` function is disabled anyway. How can I fix this?\r\n \r\nThe defaults are as follows:\r\n- 'A' for staged additions\r\n- 'M' for staged modification\r\n- 'R' for staged removals\r\n- '-M --cached' as the default diff arguments\r\nAll this can be overridden just like the rest of the plugin.\r\n\r\nIt defines a new mapping '\\hc' that toggles between the default\r\nconfiguration and staged mode.\r\n\r\nThe option for running `git diff` twice and juggle all markers is left as an exercise to the reader."},"comment":{"url":"https://api.github.com/repos/airblade/vim-gitgutter/issues/comments/136528884","html_url":"https://github.com/airblade/vim-gitgutter/pull/257#issuecomment-136528884","issue_url":"https://api.github.com/repos/airblade/vim-gitgutter/issues/257","id":136528884,"user":{"login":"somini","id":1750665,"avatar_url":"https://avatars.githubusercontent.com/u/1750665?v=3","gravatar_id":"","url":"https://api.github.com/users/somini","html_url":"https://github.com/somini","followers_url":"https://api.github.com/users/somini/followers","following_url":"https://api.github.com/users/somini/following{/other_user}","gists_url":"https://api.github.com/users/somini/gists{/gist_id}","starred_url":"https://api.github.com/users/somini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somini/subscriptions","organizations_url":"https://api.github.com/users/somini/orgs","repos_url":"https://api.github.com/users/somini/repos","events_url":"https://api.github.com/users/somini/events{/privacy}","received_events_url":"https://api.github.com/users/somini/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T23:42:40Z","updated_at":"2015-08-31T23:42:40Z","body":"Ironically, only after this I noticed that \"removing common chunks\" means diffing (or something similar), so here's a command that does exactly what I want:\r\n\r\n    $ comm -13 --nocheck-order diff_a-cached diff_a-head\r\n\r\nYes, `comm` is a common command, it's in coreutils. "}}