{"thread":{"id":"18583","subject":"Problem Creating Commit Messages","startedAt":"2009-03-27T04:44:10Z","lastAt":"2009-03-27T07:56:07Z","messageCount":4,"participants":["bggy","Geoffrey Lee","John Tapsell","Jonas Flodén"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"109600","messageId":"22735968.post@talk.nabble.com","threadId":"18583","inReplyTo":null,"subject":"Problem Creating Commit Messages","fromName":"bggy","fromEmail":"balishaggy@yahoo.com","sentAt":"2009-03-27T04:44:10Z","receivedAt":"2009-03-27T04:44:10Z","isPatch":false,"sender":{"key":"balishaggy@yahoo.com","avatar":null},"body":"\nHello, I'm new to git and I haven't been able to create commit messages in\neither vim or textmate(changed core.editor to mate).  I can create commit\nmessages when I use the -m option, but I like creating multiple-line\nmessages and it's easier to do it with a fresh line-break in the terminal.\n\nUsing textmate I saved and closed the textmate file that pops up after $git\ncommit -a, but git responds that the commit was terminated due to an empty\nmessage.\n\nI am not familiar with VIM, can change modes, but none of the key combos I\ntried worked.\n\nThank you!,\nJohn\n-- \nView this message in context: http://www.nabble.com/Problem-Creating-Commit-Messages-tp22735968p22735968.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"109603","messageId":"83d7aaa40903262218m17866090iece805b454d4462@mail.gmail.com","threadId":"18583","inReplyTo":"22735968.post@talk.nabble.com","subject":"Re: Problem Creating Commit Messages","fromName":"Geoffrey Lee","fromEmail":"geoffreyj.lee@gmail.com","sentAt":"2009-03-27T05:18:26Z","receivedAt":"2009-03-27T05:18:26Z","isPatch":false,"sender":{"key":"geoffreyj.lee@gmail.com","avatar":"https://gravatar.com/avatar/eda7290effb2fe936a54951db47d049adf71d6bd41b70c56dd9dedc8f3327c39?d=mp&s=160"},"body":"On Thu, Mar 26, 2009 at 9:44 PM, bggy <balishaggy@yahoo.com> wrote:\n> I am not familiar with VIM, can change modes, but none of the key combos I\n> tried worked.\n\n1) Press \"i\" to enter Insert mode\n2) Type in some text on the first line\n3) Press \"esc\" to leave Insert mode\n4) Press Shift + ; (or in other words, the colon character)\n5) Enter the characters \"wq\" without the quotes, and press Enter. (\"w\"\nfor write, \"q\" for quit)\n\n-Geoffrey Lee\n"},{"id":"109604","messageId":"43d8ce650903262308s2ebb5740m106bd96ae1ec2284@mail.gmail.com","threadId":"18583","inReplyTo":"22735968.post@talk.nabble.com","subject":"Re: Problem Creating Commit Messages","fromName":"John Tapsell","fromEmail":"johnflux@gmail.com","sentAt":"2009-03-27T06:08:55Z","receivedAt":"2009-03-27T06:08:55Z","isPatch":false,"sender":{"key":"johnflux@gmail.com","avatar":"https://gravatar.com/avatar/25f70d4c0f96396b84a2e34bcd9bdc233462c7b4be29b5fdca8266fc53f30b0c?d=mp&s=160"},"body":"2009/3/27 bggy <balishaggy@yahoo.com>:\n>\n> Hello, I'm new to git and I haven't been able to create commit messages in\n> either vim or textmate(changed core.editor to mate).  I can create commit\n> messages when I use the -m option, but I like creating multiple-line\n> messages and it's easier to do it with a fresh line-break in the terminal.\n\nYou could use a simple text editor like \"joe\".\n\n> Using textmate I saved and closed the textmate file that pops up after $git\n> commit -a, but git responds that the commit was terminated due to an empty\n> message.\n\nSometimes graphical editors return on the command line before they\nactually quit.  This might be what is happening here.  If so, you\ncould file a bug against textmate.\n\nJohn\n"},{"id":"109621","messageId":"gqi0qn$i3k$1@ger.gmane.org","threadId":"18583","inReplyTo":"22735968.post@talk.nabble.com","subject":"Re: Problem Creating Commit Messages","fromName":"Jonas Flodén","fromEmail":"jonas.floden@gmail.com","sentAt":"2009-03-27T07:56:07Z","receivedAt":"2009-03-27T07:56:07Z","isPatch":false,"sender":{"key":"jonas.floden@gmail.com","avatar":null},"body":"bggy wrote:\n> Hello, I'm new to git and I haven't been able to create commit messages in\n> either vim or textmate(changed core.editor to mate).  I can create commit\n> messages when I use the -m option, but I like creating multiple-line\n> messages and it's easier to do it with a fresh line-break in the terminal.\n> \n> Using textmate I saved and closed the textmate file that pops up after $git\n> commit -a, but git responds that the commit was terminated due to an empty\n> message.\n> \n\nHi there,\nFor TextMate to work with Git you need to add the option -w to \"mate\"\nwhich will specify that it should wait for the file to be closed.\n\nSo set EDITOR=\"mate -w\" and it should work with TextMate.\n\n\nWith regards,\nJonas\n"}]}