Thread (1 message) 1 message, 1 author, 2016-06-15

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:49:38

Uwe Kleine-König  [off-list ref] writes:
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help