On Fri, 3 Feb 2012 10:50:20 -0500, Eli Barzilay <[email protected]> wrote:
> 20 minutes ago, Moritz Bunkus wrote:
> > Hey,
> > 
> > On Fri, Feb 3, 2012 at 16:13, Eli Barzilay <[email protected]> wrote:
> > 
> > > I think that magit should leave the buffers as is
> > 
> > I disagree. I like the current behavior and rely on the buffers
> > being up to date with the working tree after having checkout out a
> > revision.  So if this is changed then it should be configurable
> > (e.g. "revert without asking", "revert with asking", "don't revert
> > at all").
> 

Same here.

> Obviously, the current behavior should be available as an option.  I
> think that it's also obvious that there *should* be an option.
> 
> The subjective point is what should the default be.  IMO, having the
> revert-without-asking thing is dangerous enough that it shouldn't be
> the default (but for myself I'd be happy regardless to have an
> option).
> 

How about simply committing/stashing your changes in advance?

Or using `git pull --rebase', or `git fetch', or `git remote update', ... ?


> [...]  Editing .emacs files
>    to add options seems to be very out of fashion.  (Maybe just invoke
>    the custom functionality?)
> 

Say what ?!?  Also, what is this "fashion"-thing you're referring to?


> [...]


A more flexible solution might be to add some pre/post-* hooks,
so we can do stuff like:

  #+begin_src emacs-lisp
    (add-hook 'notmuch-pre-pull-hook
              (lambda() (ignore-errors (magit-stash-snapshot))))
  #+end_src



Peace

-- 
Pieter

Reply via email to