author | Junio C Hamano <junkio@cox.net> | |
Mon, 2 May 2005 04:07:40 +0000 (21:07 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 2 May 2005 04:07:40 +0000 (21:07 -0700) | ||
commit | ee4f439fea8974c4d9de798460eb95a2ac001156 | |
tree | b1f2f0e3f29c09ff1398aaaafcc01cf4b177e569 | tree | snapshot |
parent | 90535218ddcf530bfdbae450f92385eeef954ce8 | commit | diff |
[PATCH] Do not call fetch() when we have it.
Currently pull() calls fetch() without checking whether we have
the wanted object but all of the existing fetch()
implementations perform this check and return success
themselves. This patch moves the check to the caller.
I will be sending a trivial git-local-pull which depends on
this in the next message.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Currently pull() calls fetch() without checking whether we have
the wanted object but all of the existing fetch()
implementations perform this check and return success
themselves. This patch moves the check to the caller.
I will be sending a trivial git-local-pull which depends on
this in the next message.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
http-pull.c | diff | blob | history | |
pull.c | diff | blob | history | |
rpull.c | diff | blob | history |