From: Junio C Hamano Date: Wed, 19 Oct 2005 01:42:14 +0000 (-0700) Subject: Even when overwriting tags, report if they are changed or not. X-Git-Tag: v0.99.9~81 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f8765797a41a39f4dfc7030098c38283e6461a83;p=git.git Even when overwriting tags, report if they are changed or not. Signed-off-by: Junio C Hamano --- diff --git a/git-fetch.sh b/git-fetch.sh index 31b1cf030..31e5f4c72 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -114,7 +114,12 @@ fast_forward_local () { # is no way to guarantee "fast-forward" anyway. if test -f "$GIT_DIR/$1" then - echo >&2 "* $1: updating with $3" + if now_=$(cat "$GIT_DIR/$1") && test "$now_" = "$2" + then + echo >&2 "* $1: same as $3" + else + echo >&2 "* $1: updating with $3" + fi else echo >&2 "* $1: storing $3" fi