X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git.c;h=bd2c5fe77b41f314af21df703364361b1601f3d1;hb=e36e6c00cd60130f8792319a5aa0f56d2da68e14;hp=9883009b5d9f29d4f53187947a6d8664da4d80f4;hpb=6ff9ae9f97101c30897332f608f35ad232b1faf2;p=git.git diff --git a/git.c b/git.c index 9883009b5..bd2c5fe77 100644 --- a/git.c +++ b/git.c @@ -6,7 +6,7 @@ const char git_usage_string[] = "git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]\n" - " [-p|--paginate|--no-pager]\n" + " [-p|--paginate|--no-pager] [--no-replace-objects]\n" " [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]\n" " [--help] COMMAND [ARGS]"; @@ -87,6 +87,8 @@ static int handle_options(const char ***argv, int *argc, int *envchanged) use_pager = 0; if (envchanged) *envchanged = 1; + } else if (!strcmp(cmd, "--no-replace-objects")) { + read_replace_refs = 0; } else if (!strcmp(cmd, "--git-dir")) { if (*argc < 2) { fprintf(stderr, "No directory given for --git-dir.\n" );