On Thu, Jan 10, 2013 at 8:37 AM, Frederik Beaujean <[email protected]> wrote: > Hey > > just installed magit and I like it. One thing that surprises me: after > pressing 'e' in a diff to enter the ediff interface, I can use ediff's > features to add single lines to the index, but I can't save the index. Once > I quit ediff, my additions to the index are all gone. Is that on purpose? Or > am I missing something?
No, you're not missing anything. `magit-show' just loads the file contents into a temporary buffer called [filename].X, where X is either the commit it came from or the word "index". It is an interesting idea actually be able to stage the that version of the file by saving when X is 'index'. But since that feature *doesn't* exist, those temporary buffers really should have been created read-only. Since they're not visiting files, Emacs doesn't even warn you when you close them with unsaved changes! -PJ Gehm's Corollary to Clark's Law: Any technology distinguishable from magic is insufficiently advanced.
