git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Problem Creating Commit Messages

From
JFJonas Flodén <jonas.floden@gmail.com>
Date
Mar 27, 2009, 07:56 UTC
Message-ID
<gqi0qn$i3k$1@ger.gmane.org>
In-Reply-To
<22735968.post@talk.nabble.com>
bggy wrote:
Show 9 quoted lines
> Hello, I'm new to git and I haven't been able to create commit messages in
> either vim or textmate(changed core.editor to mate).  I can create commit
> messages when I use the -m option, but I like creating multiple-line
> messages and it's easier to do it with a fresh line-break in the terminal.
> 
> Using textmate I saved and closed the textmate file that pops up after $git
> commit -a, but git responds that the commit was terminated due to an empty
> message.
> 

Hi there, For TextMate to work with Git you need to add the option -w to "mate" which will specify that it should wait for the file to be closed.

So set EDITOR="mate -w" and it should work with TextMate.

With regards, Jonas

Previous: John Tapsell
Message 4 of 4 in “Problem Creating Commit Messages”
  1. bggyMar 27, 2009
  2. Geoffrey LeeMar 27, 2009
  3. John TapsellMar 27, 2009
  4. Jonas FlodénMar 27, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.