diff options
author | Stephen Boyd <bebarino@gmail.com> | 2010-12-06 10:57:42 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-12-07 03:51:36 +0300 |
commit | 9ca1169fd92c71ebbef92ff18aa5d91a2157d1bd (patch) | |
tree | a1490182bae47da917a1d64a3ce1a52dbece0425 /builtin/blame.c | |
parent | 16529f2e5630d3d155e4dff0ebd3c7c5daa882f9 (diff) |
parse-options: Don't call parse_options_check() so much
parse_options_check() is being called for each invocation of
parse_options_step which can be quite a bit for some commands. The
commit introducing this function cb9d398 (parse-options: add
parse_options_check to validate option specs., 2009-06-09) had the
correct motivation and explicitly states that parse_options_check()
should be called from parse_options_start(). However, the implementation
differs from the motivation. Fix it.
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/blame.c')
-rw-r--r-- | builtin/blame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/blame.c b/builtin/blame.c index 101535448f..a4e41b79ee 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -2298,8 +2298,8 @@ int cmd_blame(int argc, const char **argv, const char *prefix) save_commit_buffer = 0; dashdash_pos = 0; - parse_options_start(&ctx, argc, argv, prefix, PARSE_OPT_KEEP_DASHDASH | - PARSE_OPT_KEEP_ARGV0); + parse_options_start(&ctx, argc, argv, prefix, options, + PARSE_OPT_KEEP_DASHDASH | PARSE_OPT_KEEP_ARGV0); for (;;) { switch (parse_options_step(&ctx, options, blame_opt_usage)) { case PARSE_OPT_HELP: |