How to open magit-status in full window
(setq magit-status-buffer-switch-function ‘switch-to-buffer) or via customize: M-x customize-variable RET magit-status-buffer-switch-function RET
(setq magit-status-buffer-switch-function ‘switch-to-buffer) or via customize: M-x customize-variable RET magit-status-buffer-switch-function RET
The canonical way to do that in Emacs is to use VC: C-x v ~ from the file’s buffer will ask you for a revision and then show that file as it was at that revision. It should work for any control system supported by VC, such as Git, Bzr, …
Magit enables you to “review and commit each of the files separately” directly from the magit-status buffer, without the need for any separate diff buffers. You just expand the file(s) you’re interested in (with TAB, which shows you the diff for the file at point); then you can stage the bits of it that you … Read more
It is not necessary to use magit for this particular operation – vanilla emacs can do it. (Also, because this uses vc, this should work identically in any version control system that vc supports.) First, use the vc-annotate command, which is bound to the key sequence C-x v g. Now, the point should be at … Read more
You can set the mark correctly with Ctrl+Space (C-SPC) and magit will only commit the selected portion.
In magit you just have to go on the hunk or file you want to revert, and use k to discard a modification. See the relevant documentation at https://magit.vc/manual/1.4/magit/Staging-and-Committing.html for more detail.
Since magit 2.1: magit-log-buffer-file (as per comment below) Before magit 2.1: magit-file-log is what you are looking for. It will show you all commits for the file in the current buffer in the standard magit log view.