summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-09-23 11:22:10 +0200
committerJunio C Hamano <gitster@pobox.com>2010-09-27 10:49:49 -0700
commit9facb3b05b6a2fbfcd2525d5946cd5505488126b (patch)
tree32749a9b09675c248e33d33e4f2c5623ea13b63d /git-compat-util.h
parent9027fa9eb7df606b6658dd48a40bb993ce222ddd (diff)
downloadgit-9facb3b05b6a2fbfcd2525d5946cd5505488126b.tar.gz
get_author_ident_from_commit(): remove useless quoting
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. The useful quoting is done by s/'\''/'\''\\'\'\''/g at the beginning of the script and only once for all three variables. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
0 files changed, 0 insertions, 0 deletions