]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
fast-import: add option command
authorSverre Rabbelier <srabbelier@gmail.com>
Fri, 4 Dec 2009 17:06:57 +0000 (18:06 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 5 Dec 2009 00:10:22 +0000 (16:10 -0800)
commit9c8398f0c9d1fc92df5c1a7a52c810294d8ac3f8
treec4afde8f9e0851cc8d83f1b72bdb0857d484da5b
parentf963bd5d71fd0db01f2c7f6f05df5a5f1af11b82
fast-import: add option command

This allows the frontend to specify any of the supported options as
long as no non-option command has been given. This way the
user does not have to include any frontend-specific options, but
instead she can rely on the frontend to tell fast-import what it
needs.

Also factor out parsing of argv and have it execute when we reach the
first non-option command, or after all commands have been read and
no non-option command has been encountered.

Non-git options are ignored, unrecognised options result in an error.

Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-fast-import.txt
fast-import.c