git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
cc29195
)
fast-export: improve argument parsing
author
Felipe Contreras
<redacted>
Sun, 20 Apr 2014 18:59:23 +0000
(13:59 -0500)
committer
Junio C Hamano
<redacted>
Mon, 21 Apr 2014 18:47:33 +0000
(11:47 -0700)
We don't want to pass arguments specific to fast-export to
setup_revisions.
Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/fast-export.c
patch
|
blob
|
history
diff --git
a/builtin/fast-export.c
b/builtin/fast-export.c
index b8d8a3aaf9ee8294be9a78956a70b476d327ee05..bc3490cd56ebeaae7322261766be460d09646b5b 100644
(file)
--- a/
builtin/fast-export.c
+++ b/
builtin/fast-export.c
@@
-701,8
+701,9
@@
int cmd_fast_export(int argc, const char **argv, const char *prefix)
revs.topo_order = 1;
revs.show_source = 1;
revs.rewrite_parents = 1;
+ argc = parse_options(argc, argv, prefix, options, fast_export_usage,
+ PARSE_OPT_KEEP_ARGV0 | PARSE_OPT_KEEP_UNKNOWN);
argc = setup_revisions(argc, argv, &revs, NULL);
- argc = parse_options(argc, argv, prefix, options, fast_export_usage, 0);
if (argc > 1)
usage_with_options (fast_export_usage, options);
git clone https://git.99rst.org/PROJECT