• J
    git-fetch: Avoid reading packed refs over and over again · ed9f7c95
    Junio C Hamano 提交于
    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: NJunio C Hamano <junkio@cox.net>
    ed9f7c95
git-fetch.sh 10.9 KB