author | Junio C Hamano <junkio@cox.net> | |
Mon, 18 Dec 2006 01:57:19 +0000 (17:57 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 18 Dec 2006 01:57:19 +0000 (17:57 -0800) | ||
commit | ed9f7c954c26ec6d517bdca3d8e4b895278d1b2b | |
tree | 4bb8f0ddd83046127d3e984665329f17e0a8dafc | tree | snapshot |
parent | ee6002aa429272871733b8fbc99a9e6df3e150f5 | commit | diff |
git-fetch: Avoid reading packed refs over and over again
When checking which tags to fetch, the old code used to call
git-show-ref --verify for each remote tag. Since reading even
packed refs is not a cheap operation when there are a lot of
local refs, the code became quite slow.
This fixes it by teaching git-show-ref to filter out existing
refs using a new mode of operation of git-show-ref.
Signed-off-by: Junio C Hamano <junkio@cox.net>
When checking which tags to fetch, the old code used to call
git-show-ref --verify for each remote tag. Since reading even
packed refs is not a cheap operation when there are a lot of
local refs, the code became quite slow.
This fixes it by teaching git-show-ref to filter out existing
refs using a new mode of operation of git-show-ref.
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-show-ref.c | diff | blob | history | |
git-fetch.sh | diff | blob | history |