Code

git-fetch-pack: Do not use git-rev-list
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Sun, 23 Oct 2005 01:39:08 +0000 (03:39 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 24 Oct 2005 22:13:37 +0000 (15:13 -0700)
commit69779a562a171d9b70bbb17b89e076bd6b16ae6c
treee9ebb641ea568f725c77c08f1bc38f7679c58d7a
parent0f8fdc3958ad0cb7c740b76189f98307eebcd64b
git-fetch-pack: Do not use git-rev-list

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: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
fetch-pack.c