Code

Subject: [PATCH] git-fetch-pack: Do not use git-rev-list
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Fri, 28 Oct 2005 02:46:27 +0000 (04:46 +0200)
committerJunio C Hamano <junkio@cox.net>
Sat, 29 Oct 2005 05:56:58 +0000 (22:56 -0700)
commit23d61f8343282643c830e1c446962b213dbcc09a
tree64a807347d84b5ac6bc8d768476cef0dfcccb5e0
parent7d8b7c21c9c0bee0d94fcf3b350e24ebdb920b74
Subject: [PATCH] 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