summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-04 06:44:40 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-04 06:44:40 (GMT)
commitea5aeb07e9ad92743eaaf216360340b70d4c3bbd (patch)
tree8151794453de627d409a0ae3ff62dc6adb54ef5f
parent86f7780c0b77b3c162f85d499189f9d1f0b296df (diff)
downloadgit-ea5aeb07e9ad92743eaaf216360340b70d4c3bbd.zip
git-ea5aeb07e9ad92743eaaf216360340b70d4c3bbd.tar.gz
git-ea5aeb07e9ad92743eaaf216360340b70d4c3bbd.tar.bz2
fetch: do not report "same" unless -verbose.
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgit-fetch.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-fetch.sh b/git-fetch.sh
index 69bd810..48818f8 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -166,7 +166,10 @@ fast_forward_local () {
mb=$(git-merge-base "$local" "$2") &&
case "$2,$mb" in
$local,*)
- echo >&2 "* $1: same as $3"
+ if test -n "$verbose"
+ then
+ echo >&2 "* $1: same as $3"
+ fi
;;
*,$local)
echo >&2 "* $1: fast forward to $3"