Code

fast-export: Do parent rewriting to avoid dropping relevant commits
authorElijah Newren <newren@gmail.com>
Fri, 26 Jun 2009 04:48:30 +0000 (22:48 -0600)
committerJunio C Hamano <gitster@pobox.com>
Sat, 27 Jun 2009 21:10:10 +0000 (14:10 -0700)
When specifying paths to export, parent rewriting must be turned on for
fast-export to output anything at all.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fast-export.c

index 43a7e17d3eabfb49a96d3f3bdb3310322c791656..9b8bd3729039ebce318c74eb7d873d8e4ff6c178 100644 (file)
@@ -531,6 +531,7 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix)
        init_revisions(&revs, prefix);
        revs.topo_order = 1;
        revs.show_source = 1;
+       revs.rewrite_parents = 1;
        argc = setup_revisions(argc, argv, &revs, NULL);
        argc = parse_options(argc, argv, prefix, options, fast_export_usage, 0);
        if (argc > 1)