Skip to content

Commit b10c1a7

Browse files
author
Junio C Hamano
committed
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>
1 parent f641339 commit b10c1a7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

git-format-patch.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ whosepatchScript='
128128
q
129129
}'
130130

131-
_x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
132-
_x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
133-
stripCommitHead='/^'"$_x40"' (from '"$_x40"')$/d'
134-
135131
git-cherry -v "$rev1" "$rev2" |
136132
while read sign rev comment
137133
do
@@ -216,7 +212,7 @@ Date: '"$ad"
216212
echo
217213
git-diff-tree -p $diff_opts "$commit" | git-apply --stat --summary
218214
echo
219-
git-diff-tree -p $diff_opts "$commit" | sed -e "$stripCommitHead"
215+
git-diff-tree -p $diff_opts "$commit"
220216

221217
case "$mbox" in
222218
t)

0 commit comments

Comments
 (0)