emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vc-dwim when nothing to commit


From: Eli Zaretskii
Subject: Re: vc-dwim when nothing to commit
Date: Tue, 05 May 2015 18:44:15 +0300

> From: Ted Zlatanov <address@hidden>
> Date: Mon, 04 May 2015 16:18:51 -0400
> 
> I tried polishing the interaction but I kept coming back to "run eshell
> or ansi-term and up-arrow brings up the last 'git push' in the current
> directory" which is one keystroke for me.  That's because I really,
> really want to know if `git push' fails, and which refs it failed to
> push.

Does it really fail so much for you?  I almost never see it fail here.

> So maybe the best way to do it for Git is:
> 
> 1) check to see if there's anything to push (local tracking branch is
> ahead of remote).  If not, do nothing.

Why not suggest "git pull" instead?  (Only suggest.)

> 2) Else, prompt to "git push" and capture the output.  This piece should
> have its own command history.
> 
> 3) if there was any failure (I don't know if the return code is
> sufficient to determine that), bring up eshell or ansi-term with the
> failure output pre-inserted

Not sure why you want a shell in case of failure.  What commands are
you likely to invoke in that case?  Can't we do that without bringing
up a shell?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]