parse-opts: prepare for OPT_FILENAME
commit377829201783b8a648e07af6ce7d747e0f45dc19
authorStephen Boyd <bebarino@gmail.com>
Sat, 23 May 2009 18:53:12 +0000 (23 11:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 May 2009 08:07:25 +0000 (25 01:07 -0700)
treefe989294bc3d3c8adb2c6d6b8fb7702be7c23acf
parent3d09e64ac10aab1ae6ae1ac9cce7a6ebb43f2e50
parse-opts: prepare for OPT_FILENAME

To give OPT_FILENAME the prefix, we pass the prefix to parse_options()
which passes the prefix to parse_options_start() which sets the prefix
member of parse_opts_ctx accordingly. If there isn't a prefix in the
calling context, passing NULL will suffice.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
51 files changed:
Documentation/technical/api-parse-options.txt
archive.c
builtin-add.c
builtin-apply.c
builtin-archive.c
builtin-bisect--helper.c
builtin-blame.c
builtin-branch.c
builtin-cat-file.c
builtin-check-attr.c
builtin-checkout-index.c
builtin-checkout.c
builtin-clean.c
builtin-clone.c
builtin-commit.c
builtin-config.c
builtin-count-objects.c
builtin-describe.c
builtin-fast-export.c
builtin-fetch.c
builtin-fmt-merge-msg.c
builtin-for-each-ref.c
builtin-fsck.c
builtin-gc.c
builtin-grep.c
builtin-help.c
builtin-log.c
builtin-ls-files.c
builtin-merge-base.c
builtin-merge-file.c
builtin-merge.c
builtin-mktree.c
builtin-mv.c
builtin-name-rev.c
builtin-pack-refs.c
builtin-prune.c
builtin-push.c
builtin-remote.c
builtin-reset.c
builtin-rev-parse.c
builtin-revert.c
builtin-rm.c
builtin-shortlog.c
builtin-show-branch.c
builtin-symbolic-ref.c
builtin-tag.c
builtin-update-ref.c
hash-object.c
parse-options.c
parse-options.h
test-parse-options.c