summaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-01-15 13:03:38 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-01-15 13:05:01 (GMT)
commit9d1b1b5ed7f4234ea4f2c1344ba67c6f89e2067c (patch)
tree29de376f2aeaf4ca6347a523bd265f81c3ead6b3 /fast-import.c
parentd9ee53ce45b0f1c26285417b900b3c5735721f7e (diff)
downloadgit-9d1b1b5ed7f4234ea4f2c1344ba67c6f89e2067c.zip
git-9d1b1b5ed7f4234ea4f2c1344ba67c6f89e2067c.tar.gz
git-9d1b1b5ed7f4234ea4f2c1344ba67c6f89e2067c.tar.bz2
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>
Diffstat (limited to 'fast-import.c')
-rw-r--r--fast-import.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fast-import.c b/fast-import.c
index c19567f..19d01e2 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -719,6 +719,8 @@ static void end_packfile()
if (object_count) {
fixup_header_footer();
write_index(idx_name);
+ fprintf(stdout, "%s\n", old_p->pack_name);
+ fflush(stdout);
/* Register the packfile with core git's machinary. */
new_p = add_packed_git(idx_name, strlen(idx_name), 1);