Skip to content
  • Johannes Schindelin's avatar
    git-fetch-pack: Do not use git-rev-list · 69779a56
    Johannes Schindelin authored
    
    
    The code used to call git-rev-list to enumerate the local revisions. A
    disadvantage of that method was that git-rev-list, lacking a control apart
    from the command line, would happily enumerate ancestors of acknowledged
    common commits, which was just taking unnecessary bandwidth.
    
    Therefore, do not use git-rev-list on the fetching side, but rather
    construct the list on the go. Send the revisions starting from the local
    heads, ignoring the revisions known to be common.
    
    Signed-off-by: default avatarJohannes Schindelin <Johannes.Schindelin@gmx.de>
    Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
    69779a56