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

Re: [PATCH] get_author_ident_from_commit(): remove useless quoting

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 27, 2010, 04:15 UTC
Message-ID
<7vfwwvn7o5.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1285233730-30611-1-git-send-email-u.kleine-koenig@pengutronix.de>
Uwe Kleine-König  <u.kleine-koenig@pengutronix.de> writes:
Show 8 quoted lines
> The command 's/'\''/'\''\'\'\''/g' only triples single quotes:
>
> 	$ echo "What's up?" | sed 's/'\''/'\''\'\'\''/g'
> 	What'''s up?
>
> This doesn't hurt as compared to a single single quote it only adds an
> empty string, but it makes the script needlessly complicated and hard to
> understand.

Interesting. I think this was an ancient misconversion that dates back to June 2005 ;-)

Thanks.
Previous: Uwe Kleine-König
Message 3 of 3 in “quoting in get_author_ident_from_commit”
  1. Uwe Kleine-KönigSep 22, 2010
  2. get_author_ident_from_commit(): remove useless quotingUwe Kleine-König, Sep 23, 2010
  3. Junio C HamanoSep 27, 2010

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.