]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
apply-patch: prefix diff output with '> '
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 28 Mar 2014 16:08:32 +0000 (09:08 -0700)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 31 Mar 2014 08:56:38 +0000 (11:56 +0300)
When aiaiai responds to a mailing list that is monitored by patchwork, a
failure to apply a diff can cause patchwork to generate false positive
"patches" due to the diff in the email. This patch modifies aiaiai so
that it prefixes the output of the command with a '> ' which will
prevent patchwork from recognizing this as a diff with a patch inlined
to the reply.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
helpers/aiaiai-sh-functions

index b515cf02eba2dc7b28a6edb303403946c5483331..c17255aa2809f4b59da86ac0de78d595270abab0 100644 (file)
@@ -188,7 +188,7 @@ $(patch --merge=diff3 -p1 < .git/rebase-apply/patch 2>&1)
 
 $(print_separator)
 
-$(git diff --no-color)
+$(git diff --no-color | sed 's/^/> /')
 EOF
                return 1
        }