Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'uk/fix-author-ident-sed-script' into maint
author
Junio C Hamano
<gitster@pobox.com>
Wed, 24 Nov 2010 20:44:41 +0000
(12:44 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 24 Nov 2010 20:44:41 +0000
(12:44 -0800)
* uk/fix-author-ident-sed-script:
get_author_ident_from_commit(): remove useless quoting
git-sh-setup.sh
patch
|
blob
|
history
raw
(from parent 1:
c5d2901
)
diff --git
a/git-sh-setup.sh
b/git-sh-setup.sh
index 6131670860514c215a6b9b7417dd05c3124e81b4..8d54b73d3208064829613499580bad541586c725 100644
(file)
--- a/
git-sh-setup.sh
+++ b/
git-sh-setup.sh
@@
-151,17
+151,14
@@
get_author_ident_from_commit () {
s/'\''/'\''\\'\'\''/g
h
s/^author \([^<]*\) <[^>]*> .*$/\1/
- s/'\''/'\''\'\'\''/g
s/.*/GIT_AUTHOR_NAME='\''&'\''/p
g
s/^author [^<]* <\([^>]*\)> .*$/\1/
- s/'\''/'\''\'\'\''/g
s/.*/GIT_AUTHOR_EMAIL='\''&'\''/p
g
s/^author [^<]* <[^>]*> \(.*\)$/\1/
- s/'\''/'\''\'\'\''/g
s/.*/GIT_AUTHOR_DATE='\''&'\''/p
q