summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fe5f51c)
raw | patch | inline | side by side (parent: fe5f51c)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 19 Oct 2005 01:42:14 +0000 (18:42 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 19 Oct 2005 01:42:14 +0000 (18:42 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch.sh | patch | blob | history |
diff --git a/git-fetch.sh b/git-fetch.sh
index 31b1cf0306c238dad7fb5b808a7925776ac4d762..31e5f4c7225df3d279b78f67ebd0f7a8c87ede40 100755 (executable)
--- a/git-fetch.sh
+++ b/git-fetch.sh
# 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