author | Junio C Hamano <gitster@pobox.com> | |
Wed, 8 Dec 2010 20:25:24 +0000 (12:25 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 8 Dec 2010 20:25:24 +0000 (12:25 -0800) |
* jn/git-cmd-h-bypass-setup:
update-index -h: show usage even with corrupt index
merge -h: show usage even with corrupt index
ls-files -h: show usage even with corrupt index
gc -h: show usage even with broken configuration
commit/status -h: show usage even with broken configuration
checkout-index -h: show usage even in an invalid repository
branch -h: show usage even in an invalid repository
Conflicts:
builtin/merge.c
update-index -h: show usage even with corrupt index
merge -h: show usage even with corrupt index
ls-files -h: show usage even with corrupt index
gc -h: show usage even with broken configuration
commit/status -h: show usage even with broken configuration
checkout-index -h: show usage even in an invalid repository
branch -h: show usage even in an invalid repository
Conflicts:
builtin/merge.c
1 | 2 | |||
---|---|---|---|---|
builtin/branch.c | patch | | diff1 | | diff2 | | blob | history |
builtin/checkout-index.c | patch | | diff1 | | diff2 | | blob | history |
builtin/commit.c | patch | | diff1 | | diff2 | | blob | history |
builtin/gc.c | patch | | diff1 | | diff2 | | blob | history |
builtin/ls-files.c | patch | | diff1 | | diff2 | | blob | history |
builtin/merge.c | patch | | diff1 | | diff2 | | blob | history |
builtin/update-index.c | patch | | diff1 | | diff2 | | blob | history |
t/t7508-status.sh | patch | | diff1 | | diff2 | | blob | history |
diff --cc builtin/branch.c
Simple merge
diff --cc builtin/checkout-index.c
Simple merge
diff --cc builtin/commit.c
Simple merge
diff --cc builtin/gc.c
Simple merge
diff --cc builtin/ls-files.c
Simple merge
diff --cc builtin/merge.c
index 3921cd304086cbc2edff0e1481f7c7395df8b00a,584c94f6fbc6bc474ac2b2bf35f0048ea58943e4..42fff387e69d9b5412e8e776aed3272b78ebe758
--- 1/builtin/merge.c
--- 2/builtin/merge.c
+++ b/builtin/merge.c
const char *best_strategy = NULL, *wt_strategy = NULL;
struct commit_list **remotes = &remoteheads;
- if (read_cache_unmerged()) {
- die_resolve_conflict("merge");
- }
- if (file_exists(git_path("MERGE_HEAD"))) {
- /*
- * There is no unmerged entry, don't advise 'git
- * add/rm <file>', just 'git commit'.
- */
- if (advice_resolve_conflict)
- die("You have not concluded your merge (MERGE_HEAD exists).\n"
- "Please, commit your changes before you can merge.");
- else
- die("You have not concluded your merge (MERGE_HEAD exists).");
- }
+ if (argc == 2 && !strcmp(argv[1], "-h"))
+ usage_with_options(builtin_merge_usage, builtin_merge_options);
- resolve_undo_clear();
+
/*
* Check if we are _not_ on a detached HEAD, i.e. if there is a
* current branch.
diff --cc builtin/update-index.c
Simple merge
diff --cc t/t7508-status.sh
Simple merge