Remove useless use of sed in git-format-patch.
There was a leftover use of sed that attempted to remove the commit ID output from git-diff-tree, which turned into an expensive no-op when git-diff-tree output header format changed about three months ago. Drop it. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
f6413391b1
commit
b10c1a74f0
@ -128,10 +128,6 @@ whosepatchScript='
|
|||||||
q
|
q
|
||||||
}'
|
}'
|
||||||
|
|
||||||
_x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
|
|
||||||
_x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
|
|
||||||
stripCommitHead='/^'"$_x40"' (from '"$_x40"')$/d'
|
|
||||||
|
|
||||||
git-cherry -v "$rev1" "$rev2" |
|
git-cherry -v "$rev1" "$rev2" |
|
||||||
while read sign rev comment
|
while read sign rev comment
|
||||||
do
|
do
|
||||||
@ -216,7 +212,7 @@ Date: '"$ad"
|
|||||||
echo
|
echo
|
||||||
git-diff-tree -p $diff_opts "$commit" | git-apply --stat --summary
|
git-diff-tree -p $diff_opts "$commit" | git-apply --stat --summary
|
||||||
echo
|
echo
|
||||||
git-diff-tree -p $diff_opts "$commit" | sed -e "$stripCommitHead"
|
git-diff-tree -p $diff_opts "$commit"
|
||||||
|
|
||||||
case "$mbox" in
|
case "$mbox" in
|
||||||
t)
|
t)
|
||||||
|
Loading…
Reference in New Issue
Block a user