aboutsummaryrefslogtreecommitdiff
path: root/read-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-02 00:50:16 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-02 00:50:16 -0700
commit7dd43575f8641c8a73b1e976715056ebdc773904 (patch)
treeb94593d1298e85792e1eb13daff297d755b2d0d9 /read-tree.c
parent0842acff57f386ba749c3ea6b5e034771f074f6b (diff)
downloadgit-7dd43575f8641c8a73b1e976715056ebdc773904.tar.gz
git-7dd43575f8641c8a73b1e976715056ebdc773904.tar.xz
read-tree: remove --head option.
Initially it was to allow specifying more than one remote to allow creation of an Octopus, but it is not being used. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'read-tree.c')
-rw-r--r--read-tree.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/read-tree.c b/read-tree.c
index ca808739d..390fe2f02 100644
--- a/read-tree.c
+++ b/read-tree.c
@@ -629,11 +629,6 @@ int main(int argc, char **argv)
continue;
}
- if (!strcmp(arg, "--head")) {
- head_idx = stage - 1;
- fn = threeway_merge;
- }
-
/* "-m" stands for "merge", meaning we start in stage 1 */
if (!strcmp(arg, "-m")) {
if (stage || merge)
@@ -657,7 +652,8 @@ int main(int argc, char **argv)
}
if ((update||index_only) && !merge)
usage(read_tree_usage);
- if (merge && !fn) {
+
+ if (merge) {
if (stage < 2)
die("just how do you expect me to merge %d trees?", stage-1);
switch (stage - 1) {
@@ -674,9 +670,7 @@ int main(int argc, char **argv)
fn = threeway_merge;
break;
}
- }
- if (head_idx < 0) {
if (stage - 1 >= 3)
head_idx = stage - 2;
else