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

Re: Escape character for .gitconfig

From
EBErik Blake <erik@icefield.yk.ca>
Date
Dec 20, 2011, 08:04 UTC
Message-ID
<4EF04199.1010008@icefield.yk.ca>
In-Reply-To
<4EEF5F59.8030802@dirk.my1.cc>
Hi Dirk,

I ended up using "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin" which works nicely for me (note the placement of the inner quotations).

It is notepad.exe (the default Windows editor) that fails on files with only <lf> termination. That's why I was trying to set notepad++ as the git editor as it is vastly superior.

Cheers, Erik

On 2011-12-19 16:59, Dirk Süsserott wrote:
Show 22 quoted lines
> Am 18.12.2011 10:51 schrieb Jeff King:
>> On Sun, Dec 18, 2011 at 08:53:09AM +0100, Erik Blake wrote:
>>
> [...]
>>> Now, however, I have a different problem in that notepad++ is somehow
>>> signalling git that editing is complete before I even get a chance to
>>> edit the file. I am trying the command
>>>> git commit --amend
> [...]
>> I know nothing about notepad++, but a quick google turned up the
>> "-multiInst" option, which would avoid attaching to the existing
>> instance. That might work for you.
>>
>> -Peff
> Jeff is right! I also use notepad++ and have set
>
> export GIT_EDITOR='notepad++ -multiInst'
>
> in my .bashrc (msysGit). And btw: notepad++ DOES handle cr/lf. Look at
> the "Format" menu.
>
>      Dirk
Previous: Dirk SüsserottNext: Dirk Süsserott
Message 6 of 9 in “Escape character for .gitconfig”
  1. Erik BlakeDec 17, 2011
  2. Jeff KingDec 17, 2011
  3. Erik BlakeDec 18, 2011
  4. Jeff KingDec 18, 2011
  5. Dirk SüsserottDec 19, 2011
  6. Erik BlakeDec 20, 2011
  7. Dirk SüsserottDec 20, 2011
  8. Peter KreftingDec 21, 2011
  9. demerphqDec 21, 2011

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.