git-p4: stream from perforce to speed up clones
authorLuke Diamand <luke@diamand.org>
Wed, 29 Jul 2009 23:13:46 +0000 (00:13 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Aug 2009 21:25:20 +0000 (14:25 -0700)
commitb932705b457ad191481a871292d71088bb23d244
tree702b73d2df4c82df9ad72b6abafdb1b67c0af162
parentc14417c4f5f8d7765e232f1e908b85d2ae14ec34
git-p4: stream from perforce to speed up clones

Change commit() to stream data from Perforce and into fast-import
rather than reading into memory first, and then writing out. This
hugely reduces the memory requirements when cloning non-incrementally.

Signed-off-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/fast-import/git-p4