From: Jonathan Nieder Date: Mon, 9 Nov 2009 15:04:49 +0000 (-0600) Subject: Show usage string for 'git fast-import -h' X-Git-Tag: v1.6.6-rc0~34^2~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=71a04a8b52b8a89addd31da5b2272d572fdc7e40;p=git.git Show usage string for 'git fast-import -h' Let "git fast-import -h" (with no other arguments) print usage before exiting, even when run outside any repository. Cc: Shawn O. Pearce Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/fast-import.c b/fast-import.c index 6faaaacb6..f4f1de6dd 100644 --- a/fast-import.c +++ b/fast-import.c @@ -2405,6 +2405,9 @@ int main(int argc, const char **argv) git_extract_argv0_path(argv[0]); + if (argc == 2 && !strcmp(argv[1], "-h")) + usage(fast_import_usage); + setup_git_directory(); git_config(git_pack_config, NULL); if (!pack_compression_seen && core_compression_seen)