More build output cleaning up
[gitweb.git] / builtin-bundle.c
index 191ec5570f7e2d82653ff063f79b5e71218270b5..279b8f8e582665dda3c99d800094db2f5cf5af99 100644 (file)
@@ -172,7 +172,7 @@ static int verify_bundle(struct bundle_header *header)
        struct object_array refs;
        struct commit *commit;
        int i, ret = 0, req_nr;
-       const char *message = "The bundle requires these lacking revs:";
+       const char *message = "Repository lacks these prerequisite commits:";
 
        init_revisions(&revs, NULL);
        for (i = 0; i < p->nr; i++) {
@@ -263,11 +263,16 @@ static void show_object(struct object_array_entry *p)
        write_or_die(1, "\n", 1);
 }
 
+static void show_edge(struct commit *commit)
+{
+       ; /* nothing to do */
+}
+
 static int create_bundle(struct bundle_header *header, const char *path,
                int argc, const char **argv)
 {
        int bundle_fd = -1;
-       const char **argv_boundary = xmalloc((argc + 3) * sizeof(const char *));
+       const char **argv_boundary = xmalloc((argc + 4) * sizeof(const char *));
        const char **argv_pack = xmalloc(4 * sizeof(const char *));
        int pid, in, out, i, status;
        char buffer[1024];
@@ -282,10 +287,11 @@ static int create_bundle(struct bundle_header *header, const char *path,
        write_or_die(bundle_fd, bundle_signature, strlen(bundle_signature));
 
        /* write prerequisites */
-       memcpy(argv_boundary + 2, argv + 1, argc * sizeof(const char *));
+       memcpy(argv_boundary + 3, argv + 1, argc * sizeof(const char *));
        argv_boundary[0] = "rev-list";
        argv_boundary[1] = "--boundary";
-       argv_boundary[argc + 1] = NULL;
+       argv_boundary[2] = "--pretty=oneline";
+       argv_boundary[argc + 2] = NULL;
        out = -1;
        pid = fork_with_pipe(argv_boundary, NULL, &out);
        if (pid < 0)
@@ -340,6 +346,7 @@ static int create_bundle(struct bundle_header *header, const char *path,
        dup2(in, 1);
        close(in);
        prepare_revision_walk(&revs);
+       mark_edges_uninteresting(revs.commits, &revs, show_edge);
        traverse_commit_list(&revs, show_commit, show_object);
        close(1);
        while (waitpid(pid, &status, 0) < 0)