X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-fast-export.c;h=fdf4ae9ebdba7832a0ac736d56a7b564bba41baa;hb=a797b02f3925c4a6324472e2edaf4a58d4ffc097;hp=838633808c3eb4891919aa397716f04fcd4cfe24;hpb=efe05b019ca19328d27c07ef32b4698a7f36166f;p=git.git diff --git a/builtin-fast-export.c b/builtin-fast-export.c index 838633808..fdf4ae9eb 100644 --- a/builtin-fast-export.c +++ b/builtin-fast-export.c @@ -497,6 +497,9 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix) OPT_END() }; + if (argc == 1) + usage_with_options (fast_export_usage, options); + /* we handle encodings */ git_config(git_default_config, NULL); @@ -511,6 +514,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;