git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Erik Blake <erik@icefield.yk.ca>
Cc: git@vger.kernel.org
Subject: Re: Escape character for .gitconfig
Date: Sun, 18 Dec 2011 04:51:20 -0500	[thread overview]
Message-ID: <20111218095120.GA2290@sigill.intra.peff.net> (raw)
In-Reply-To: <4EED9BE5.8060600@icefield.yk.ca>

On Sun, Dec 18, 2011 at 08:53:09AM +0100, Erik Blake wrote:

> That did the trick for this git newb. For the record, I had tried \(,
> /(, double- and single-quoting the entire path (note that git config
> --global had removed the quotes that were originally around the
> string). Did not think of "nested" quotes.

Yeah, if you are using "git config" to enter it on the command line,
you'll have to put an extra layer of quoting around it to pass it
through the shell you're currently running. That's why I showed the
example as the actual config file text. :)

> 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

Yep. This is a general problem with editors that open files in an
existing session. The only signal git has of the user being done editing
is when when the editor process exits. For many editors, there is an
option or other trick for sticking around until the file is closed.

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

  reply	other threads:[~2011-12-18  9:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-17 10:10 Escape character for .gitconfig Erik Blake
2011-12-17 10:58 ` Jeff King
2011-12-18  7:53   ` Erik Blake
2011-12-18  9:51     ` Jeff King [this message]
2011-12-19 15:59       ` Dirk Süsserott
2011-12-20  8:04         ` Erik Blake
2011-12-20 19:46           ` Dirk Süsserott
2011-12-21 12:54 ` Peter Krefting
2011-12-21 13:59   ` demerphq

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111218095120.GA2290@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=erik@icefield.yk.ca \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).