diff options
author | Elijah Newren <newren@gmail.com> | 2009-02-10 23:03:53 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-11 18:30:17 -0800 |
commit | 784f8affe4dfc8ceec93803d6c22b4b8467a4642 (patch) | |
tree | 9479dffdea818483ee4e191e7dd3863170b2bbd5 /builtin-fast-export.c | |
parent | fa3a0c94dc88567b513e58835e5915f87da40af9 (diff) | |
download | git-784f8affe4dfc8ceec93803d6c22b4b8467a4642.tar.gz |
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.c | 1 |
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; |