Teach fast-import to print the id of each imported commit
commite491caff0cbbaa0289087afe3c032c6a44054dea
authorJonathan Nieder <jrnieder@gmail.com>
Sun, 5 Sep 2010 03:29:58 +0000 (4 22:29 -0500)
committerDavid Barr <david.barr@cordelta.com>
Fri, 10 Sep 2010 04:26:22 +0000 (10 14:26 +1000)
tree4dc26cd00bbd239b0d166086df6abff67960ab26
parent5f3ed2aba6de4865ab14e9392efc1621ed4df4b0
Teach fast-import to print the id of each imported commit

For the svn importer, it would be useful to build a map from
subversion revision numbers to git commits as the import takes place.
This is particularly relevant because the subversion api sometimes
represents as "copy this directory from this revision", and the
importer needs to be able to access the corresponding trees.  So
(optionally) print each commit id when the corresponding object is
written.

Unfortunately when each commit object is written, it is not yet
accessible to the caller until a checkpoint has finished.  A later
patch will teach fast-import to directly pass on the relevant data on
request, using the same channel.

Cc: Shawn O. Pearce <spearce@spearce.org>
Cc: Sverre Rabbelier <srabbelier@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Documentation/git-fast-import.txt
fast-import.c
t/t9300-fast-import.sh