fetch: do not report "same" unless -verbose.
authorJunio C Hamano <junkio@cox.net>
Sun, 4 Jun 2006 06:44:40 +0000 (23:44 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 4 Jun 2006 06:44:40 +0000 (23:44 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch.sh

index 69bd810..48818f8 100755 (executable)
@@ -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"