Print the packfile names to stdout from fast-import.
Caller scripts may want to know what packfiles the fast-import process just wrote out for them. This is now output to stdout, one packfile name per line, after we checkpoint each packfile. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jan 15, 2007 at 08:03 UTC
9d1b1b5ed7f4234ea4f2c1344ba67c6f89e2067c
1 file changed
+2
fast-import.c
+2
@@ -719,6 +719,8 @@ static void end_packfile()
719
if (object_count) {
720
fixup_header_footer();
721
write_index(idx_name);
722
+ fprintf(stdout, "%s\n", old_p->pack_name);
723
+ fflush(stdout);
724
725
/* Register the packfile with core git's machinary. */
726
new_p = add_packed_git(idx_name, strlen(idx_name), 1);