Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2009-02-11 09:03:53 +0300
committerJunio C Hamano <gitster@pobox.com>2009-02-12 05:30:17 +0300
commit784f8affe4dfc8ceec93803d6c22b4b8467a4642 (patch)
tree9479dffdea818483ee4e191e7dd3863170b2bbd5 /builtin-fast-export.c
parentfa3a0c94dc88567b513e58835e5915f87da40af9 (diff)
fast-export: ensure we traverse commits in topological order
fast-export will only list as parents those commits which have already been traversed (making it appear as if merges have been squashed if not all parents have been traversed). To avoid this silent squashing of merge commits, we request commits in topological order. Signed-off-by: Elijah Newren <newren@gmail.com> Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-fast-export.c')
-rw-r--r--builtin-fast-export.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-fast-export.c b/builtin-fast-export.c
index 838633808c..cdb7df5efe 100644
--- a/builtin-fast-export.c
+++ b/builtin-fast-export.c
@@ -511,6 +511,7 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix)
get_tags_and_duplicates(&revs.pending, &extra_refs);
+ revs.topo_order = 1;
if (prepare_revision_walk(&revs))
die("revision walk setup failed");
revs.diffopt.format_callback = show_filemodify;