[vtk-developers] git and xemacs
Bill Lorensen
bill.lorensen at gmail.com
Sun Jun 13 08:33:37 EDT 2010
I found a solution for windows. You must create a shell script that
invokes the eidtor with a "$*" argument
BTW, I use the mingw's gitbash as my shell.
Create a shell script xemacs.sh that contains:
#!/bin/sh
PATH_TO_EMACS "$*"
then
git config --global core.editor PATH_TO_SCRIPT/xemacs.sh
to test it type:
git config --global edit
On Sat, Jun 12, 2010 at 3:16 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> I forgot to mention. I have problems under Windows. Under linux, the
> xemacs properly shows the buffer .git/COMMIT_EDITMSG
>
> On Sat, Jun 12, 2010 at 11:24 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>> Folks,
>>
>> I am trying to commit a file with a long commit message.
>>
>> I have set GIT_EDITOR to my xemacs .
>>
>> When I do
>> git commit file.cxx
>> xemacs comes up and I can enter a message.
>>
>> The name of the buffer in xemacs is "$@" (which seems strange).
>>
>> When I exit xemacs, the message is not part of the commit.
>>
>> How do I configure xemacs to properly handle these messages?
>>
>> Thanks,
>>
>> Bill
>>
>
More information about the vtk-developers
mailing list