Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2019-07-25 00:15:00 +0300
committerJunio C Hamano <gitster@pobox.com>2019-07-25 18:58:13 +0300
commit80dfc9242ebaba357ffedececd88641a1a752411 (patch)
tree74a4b5d62c16e70f1ba834017a35db7f9f93f6a7 /builtin
parentcbea64615301e7dea0cd756cf0245653ecbf6edc (diff)
git: mark cmd_rebase as requiring a worktree
We skipped marking the "rebase" built-in as requiring a .git/ directory and a worktree only to allow to spawn the scripted version of `git rebase`. Now that we no longer have that escape hatch, we can change that to the canonical form. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/rebase.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/builtin/rebase.c b/builtin/rebase.c
index 2f9041fce2..21681a551b 100644
--- a/builtin/rebase.c
+++ b/builtin/rebase.c
@@ -1486,10 +1486,6 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
usage_with_options(builtin_rebase_usage,
builtin_rebase_options);
- prefix = setup_git_directory();
- trace_repo_setup(prefix);
- setup_work_tree();
-
options.allow_empty_message = 1;
git_config(rebase_config, &options);