{"action":"created","issue":{"url":"https://api.github.com/repos/magit/magit/issues/1759","labels_url":"https://api.github.com/repos/magit/magit/issues/1759/labels{/name}","comments_url":"https://api.github.com/repos/magit/magit/issues/1759/comments","events_url":"https://api.github.com/repos/magit/magit/issues/1759/events","html_url":"https://github.com/magit/magit/issues/1759","id":60441760,"number":1759,"title":"Question : How does magit stage via status diff + region.","user":{"login":"jasonm23","id":71587,"avatar_url":"https://avatars.githubusercontent.com/u/71587?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonm23","html_url":"https://github.com/jasonm23","followers_url":"https://api.github.com/users/jasonm23/followers","following_url":"https://api.github.com/users/jasonm23/following{/other_user}","gists_url":"https://api.github.com/users/jasonm23/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonm23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonm23/subscriptions","organizations_url":"https://api.github.com/users/jasonm23/orgs","repos_url":"https://api.github.com/users/jasonm23/repos","events_url":"https://api.github.com/users/jasonm23/events{/privacy}","received_events_url":"https://api.github.com/users/jasonm23/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-10T02:30:02Z","updated_at":"2015-03-12T02:15:44Z","closed_at":"2015-03-10T07:45:37Z","body":"This is a question about the internals and interfacing with git.  (as opposed to how do I do this using Magit.) (which for anyone who ever googles this by mistake: https://vid.me/8qi5)\r\n\r\nWhat exactly does magit do with git for this action?"},"comment":{"url":"https://api.github.com/repos/magit/magit/issues/comments/78412064","html_url":"https://github.com/magit/magit/issues/1759#issuecomment-78412064","issue_url":"https://api.github.com/repos/magit/magit/issues/1759","id":78412064,"user":{"login":"jasonm23","id":71587,"avatar_url":"https://avatars.githubusercontent.com/u/71587?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonm23","html_url":"https://github.com/jasonm23","followers_url":"https://api.github.com/users/jasonm23/followers","following_url":"https://api.github.com/users/jasonm23/following{/other_user}","gists_url":"https://api.github.com/users/jasonm23/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonm23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonm23/subscriptions","organizations_url":"https://api.github.com/users/jasonm23/orgs","repos_url":"https://api.github.com/users/jasonm23/repos","events_url":"https://api.github.com/users/jasonm23/events{/privacy}","received_events_url":"https://api.github.com/users/jasonm23/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T02:15:44Z","updated_at":"2015-03-12T02:15:44Z","body":"Note if I select a single line from an unstaged hunk and run the previously mentioned command, I just get.\r\n\r\n   (\"@@ -97,3 +98,8 @@\")\r\n\r\n(note: this would cover the entire hunk.)\r\n\r\nAnd then I do, from the shell.\r\n\r\n    echo \"@@ -97,3 +98,8 @@\" | git add -u\r\n\r\nGit then stages the entire hunk.\r\n\r\nI will experiment with this, but it still doesn't explain what magit is doing.  By the way, even if you disagree with the location of this issue, please don't close it until it's properly answered.  Thank you."}}