Skip to contentSkip to conversation

Convert some "apply --summary" users to "diff --summary".

PATCH New Sean 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore

Sean

author
#0 lore raw

PATCH 1/1 Convert some "apply --summary" users to "diff --summary".

---

10e6a3cba25ce956654e40d824da191e4e4d3062

 git-format-patch.sh |    2 +-
 git-merge.sh        |    3 +--
 git-request-pull.sh |    2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

10e6a3cba25ce956654e40d824da191e4e4d3062

git-format-patch.sh +1 -1
index c077f44..8a16ead 100755
@@ -274,7 +274,7 @@ print "\n---\n\n";
 close FH or die "close $commsg pipe";
 ' "$keep_subject" "$num" "$signoff" "$headers" "$mimemagic" $commsg
 
-	git-diff-tree -p $diff_opts "$commit" | git-apply --stat --summary
+	git-diff-tree -p --stat --summary $diff_opts "$commit"
 	echo
 	case "$mimemagic" in
 	'');;
git-merge.sh +1 -2
index b834e79..af1f25b 100755
@@ -55,8 +55,7 @@ finish () {
 
 	case "$no_summary" in
 	'')
-		git-diff-tree -p -M "$head" "$1" |
-		git-apply --stat --summary
+		git-diff-tree -p --stat --summary -M "$head" "$1"
 		;;
 	esac
 }
git-request-pull.sh +1 -1
index 2c48bfb..4319e35 100755
@@ -30,4 +30,4 @@ echo "  $url"
 echo
 
 git log  $baserev..$headrev | git-shortlog ;
-git diff $baserev..$headrev | git-apply --stat --summary
+git diff --stat --summary $baserev..$headrev
Signature · 1 line
1.3.2.gab2a