diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-11-10 12:36:26 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-10 12:36:26 -0800 |
commit | 8ac7a77be668180d515e234d550cc661aa0c1ebd (patch) | |
tree | 8aa4710a131dbfd0722de487bcf91914882e39cd | |
parent | 6a93158c334fae92c5ca969cd0d0725c90af6b54 (diff) | |
parent | d629c40b0b8b63b0c8b33d52dcba0ed202d898d7 (diff) | |
download | git-8ac7a77be668180d515e234d550cc661aa0c1ebd.tar.gz |
Merge branch 'maint'
* maint:
merge: do not setup worktree twice
check-ref-format: update usage string
Conflicts:
builtin-check-ref-format.c
-rw-r--r-- | builtin-check-ref-format.c | 6 | ||||
-rw-r--r-- | builtin-merge.c | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/builtin-check-ref-format.c b/builtin-check-ref-format.c index e3e7bdf52f..513f134638 100644 --- a/builtin-check-ref-format.c +++ b/builtin-check-ref-format.c @@ -7,6 +7,10 @@ #include "builtin.h" #include "strbuf.h" +static const char builtin_check_ref_format_usage[] = +"git check-ref-format [--print] <refname>\n" +" or: git check-ref-format --branch <branchname-shorthand>"; + /* * Replace each run of adjacent slashes in src with a single slash, * and write the result to dst. @@ -49,6 +53,6 @@ int cmd_check_ref_format(int argc, const char **argv, const char *prefix) exit(0); } if (argc != 2) - usage("git check-ref-format refname"); + usage(builtin_check_ref_format_usage); return !!check_ref_format(argv[1]); } diff --git a/builtin-merge.c b/builtin-merge.c index 1ff7b15803..c8d7bdecc4 100644 --- a/builtin-merge.c +++ b/builtin-merge.c @@ -846,7 +846,6 @@ int cmd_merge(int argc, const char **argv, const char *prefix) const char *best_strategy = NULL, *wt_strategy = NULL; struct commit_list **remotes = &remoteheads; - setup_work_tree(); if (file_exists(git_path("MERGE_HEAD"))) die("You have not concluded your merge. (MERGE_HEAD exists)"); if (read_cache_unmerged()) |