diff options
author | Junio C Hamano <junkio@cox.net> | 2006-06-03 23:44:40 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-03 23:44:40 -0700 |
commit | ea5aeb07e9ad92743eaaf216360340b70d4c3bbd (patch) | |
tree | 8151794453de627d409a0ae3ff62dc6adb54ef5f /git-fetch.sh | |
parent | 86f7780c0b77b3c162f85d499189f9d1f0b296df (diff) | |
download | git-ea5aeb07e9ad92743eaaf216360340b70d4c3bbd.tar.gz |
fetch: do not report "same" unless -verbose.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-x | git-fetch.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git-fetch.sh b/git-fetch.sh index 69bd810082..48818f8224 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" |