Thread (6 messages) flat view 6 messages, 4 authors, 2016-06-15

Re: git refuses to work with gvim

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:47:32

sebastian@CoLi.Uni-SB.DE writes:
# git commit something
fatal: no commit message?  aborting commit.
#
The problem is that gvim returns immediately, and lets the window
opened (try it in a terminal, "gvim foo.txt" returns immediately). Git
expects the commit message to be written and saved when $EDITOR
returns.

A quick search for "wait" in the man pages tells me that

  GIT_EDITOR='gvim -f' git commit 

works.

(BTW, this is in no way specific to Git, 99% applications calling
$EDITOR will expect the same behavior)

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help