@matheusbsbs / matheus-bagliano / commits / b10c1a74f0
Fork 0

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>

Junio C Hamano committed Oct 4, 2005 at 00:40 UTC b10c1a74f0edb7664f127a4f7308fb287beb5f01
1 file changed +1 -5
git-format-patch.sh
+1 -5
@@ -128,10 +128,6 @@ whosepatchScript='
128 q
129 }'
130
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 -
131 git-cherry -v "$rev1" "$rev2" |
132 while read sign rev comment
133 do
@@ -216,7 +212,7 @@ Date: '"$ad"
212 echo
213 git-diff-tree -p $diff_opts "$commit" | git-apply --stat --summary
214 echo
219 - git-diff-tree -p $diff_opts "$commit" | sed -e "$stripCommitHead"
215 + git-diff-tree -p $diff_opts "$commit"
216
217 case "$mbox" in
218 t)