From: Marco Costalba <mcostalba@yahoo.it>
To: junkio@cox.net
Cc: git@vger.kernel.org
Subject: Subject: [PATCH] Fix git-commit-script to output on stderr when -v fails
Date: Sat, 20 Aug 2005 09:07:15 -0700 (PDT) [thread overview]
Message-ID: <20050820160715.37321.qmail@web26309.mail.ukl.yahoo.com> (raw)
From: Marco Costalba <mcostalba@yahoo.it>
Date: 1124553736 +0200
When git-commit-script is called with -v option and
verify test fails result is print on stdout
instead of stderr.
Signed-off-by: Marco Costalba <mcostalba@yahoo.it>
---
git-commit-script | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
676a1dcf50a5abc3bc9751c9dbb0146ae31ebfc9
diff --git a/git-commit-script b/git-commit-script
--- a/git-commit-script
+++ b/git-commit-script
@@ -113,16 +113,16 @@ t)
sub bad_line {
my ($why, $line) = @_;
if (!$found_bad) {
- print "*\n";
- print "* You have some suspicious patch lines:\n";
- print "*\n";
+ print STDERR "*\n";
+ print STDERR "* You have some suspicious patch lines:\n";
+ print STDERR "*\n";
$found_bad = 1;
}
if ($reported_filename ne $filename) {
- print "* In $filename\n";
+ print STDERR "* In $filename\n";
$reported_filename = $filename;
}
- print "* $why (line $lineno)\n$line\n";
+ print STDERR "* $why (line $lineno)\n$line\n";
}
open $fh, "-|", qw(git-diff-cache -p -M --cached HEAD);
while (<$fh>) {
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
reply other threads:[~2005-08-20 16:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050820160715.37321.qmail@web26309.mail.ukl.yahoo.com \
--to=mcostalba@yahoo.it \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox