diff options
| author | Junio C Hamano <gitster@pobox.com> | 2009-10-18 23:01:31 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2009-10-18 23:01:31 -0700 |
| commit | 804edc13ae07ddfccad8c149a68a0ab95d5e5441 (patch) | |
| tree | a1a252b3d522f7d887c37f8d1c03500dbf37218f /git.c | |
| parent | c22e5e994a12b1c986427e8bdba6d86899f1aa30 (diff) | |
| parent | b0fa7ab51b29d34579d8f6bb4443dfbcb8278c7a (diff) | |
Merge branch 'cc/replace-no-replace'
* cc/replace-no-replace:
git: add --no-replace-objects option to disable replacing
Diffstat (limited to 'git.c')
| -rw-r--r-- | git.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" ); |
