summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 916e137)
raw | patch | inline | side by side (parent: 916e137)
author | Elijah Newren <newren@gmail.com> | |
Fri, 26 Jun 2009 04:48:27 +0000 (22:48 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 27 Jun 2009 21:10:09 +0000 (14:10 -0700) |
setup_revisions sets a variety of flags based on the setting of other
flags, such as setting the limited flag when topo_order is set. To avoid
circumventing any invariants created by setup_revisions, we set
revs.topo_order before calling it rather than after.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
flags, such as setting the limited flag when topo_order is set. To avoid
circumventing any invariants created by setup_revisions, we set
revs.topo_order before calling it rather than after.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fast-export.c | patch | blob | history |
diff --git a/builtin-fast-export.c b/builtin-fast-export.c
index 6cef8103127a8748acb64ca7ec7a7a95fb639cd3..e0cfa606dc2ae293c2c2c999f22d5858fee60d3b 100644 (file)
--- a/builtin-fast-export.c
+++ b/builtin-fast-export.c
git_config(git_default_config, NULL);
init_revisions(&revs, prefix);
+ revs.topo_order = 1;
argc = setup_revisions(argc, argv, &revs, NULL);
argc = parse_options(argc, argv, prefix, options, fast_export_usage, 0);
if (argc > 1)
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;