mirror of
https://github.com/git/git.git
synced 2024-11-19 05:13:58 +01:00
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 <spearce@spearce.org> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
aeda85a815
commit
71a04a8b52
@ -2405,6 +2405,9 @@ int main(int argc, const char **argv)
|
|||||||
|
|
||||||
git_extract_argv0_path(argv[0]);
|
git_extract_argv0_path(argv[0]);
|
||||||
|
|
||||||
|
if (argc == 2 && !strcmp(argv[1], "-h"))
|
||||||
|
usage(fast_import_usage);
|
||||||
|
|
||||||
setup_git_directory();
|
setup_git_directory();
|
||||||
git_config(git_pack_config, NULL);
|
git_config(git_pack_config, NULL);
|
||||||
if (!pack_compression_seen && core_compression_seen)
|
if (!pack_compression_seen && core_compression_seen)
|
||||||
|
Loading…
Reference in New Issue
Block a user