From: Benjamin C Meyer <bmeyer@rim.com>
To: git@vger.kernel.org
Cc: Benjamin C Meyer <bmeyer@rim.com>
Subject: [PATCH 3/4] rebase: use --quiet rather than 2>/dev/null
Date: Fri, 19 Mar 2010 22:18:37 -0400 [thread overview]
Message-ID: <1269051518-25099-3-git-send-email-bmeyer@rim.com> (raw)
In-Reply-To: <1269051518-25099-1-git-send-email-bmeyer@rim.com>
Signed-off-by: Benjamin C Meyer <bmeyer@rim.com>
---
git-rebase.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-rebase.sh b/git-rebase.sh
index fb4fef7..bf93019 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -101,7 +101,7 @@ call_merge () {
cmt="$(cat "$dotest/cmt.$1")"
echo "$cmt" > "$dotest/current"
hd=$(git rev-parse --verify HEAD)
- cmt_name=$(git symbolic-ref HEAD 2> /dev/null || echo HEAD)
+ cmt_name=$(git symbolic-ref --quiet HEAD || echo HEAD)
msgnum=$(cat "$dotest/msgnum")
end=$(cat "$dotest/end")
eval GITHEAD_$cmt='"${cmt_name##refs/heads/}~$(($end - $msgnum))"'
--
1.7.0.2
next prev parent reply other threads:[~2010-03-20 2:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-20 2:18 [PATCH 1/4] stash: use --quiet rather than using 2>/dev/null Benjamin C Meyer
2010-03-20 2:18 ` [PATCH 2/4] pull: use --quiet rather than 2>/dev/null Benjamin C Meyer
2010-03-20 12:35 ` Jonathan Nieder
2010-03-20 18:59 ` Benjamin Meyer
2010-03-21 4:33 ` Jonathan Nieder
2010-03-21 17:34 ` Benjamin Meyer
2010-03-23 3:23 ` Jonathan Nieder
2010-03-20 2:18 ` Benjamin C Meyer [this message]
2010-03-20 2:18 ` [PATCH 4/4] rebase-interactive: " Benjamin C Meyer
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=1269051518-25099-3-git-send-email-bmeyer@rim.com \
--to=bmeyer@rim.com \
--cc=git@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).