git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
81214e4
)
format-patch/commit: Quote single quote in the author name properly.
author
Junio C Hamano
<redacted>
Fri, 6 Jan 2006 03:50:37 +0000
(19:50 -0800)
committer
Junio C Hamano
<redacted>
Fri, 6 Jan 2006 04:02:33 +0000
(20:02 -0800)
Noticed by Kyle McMartin.
Signed-off-by: Junio C Hamano <redacted>
git-commit.sh
patch
|
blob
|
history
git-format-patch.sh
patch
|
blob
|
history
diff --git
a/git-commit.sh
b/git-commit.sh
index 82d743bd037db74f4233a620b001fb3002f346cc..193feeb5e42f1a486a3aae42935cb98696a2baac 100755
(executable)
--- a/
git-commit.sh
+++ b/
git-commit.sh
@@
-165,6
+165,7
@@
then
then
pick_author_script='
/^author /{
+ s/'\''/'\''\\'\'\''/g
h
s/^author \([^<]*\) <[^>]*> .*$/\1/
s/'\''/'\''\'\'\''/g
diff --git
a/git-format-patch.sh
b/git-format-patch.sh
index daa3caea778e13e946c4ffe53c876f5222ce7dfe..818059f2429d440396daa313dd7fde98bb4782e0 100755
(executable)
--- a/
git-format-patch.sh
+++ b/
git-format-patch.sh
@@
-173,6
+173,7
@@
titleScript='
whosepatchScript='
/^author /{
+ s/'\''/'\''\\'\'\''/g
s/author \(.*>\) \(.*\)$/au='\''\1'\'' ad='\''\2'\''/p
q
}'
git clone https://git.99rst.org/PROJECT