Remove "octopus".
authorJunio C Hamano <junkio@cox.net>
Tue, 20 Dec 2005 02:03:31 +0000 (18:03 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 20 Dec 2005 02:05:49 +0000 (18:05 -0800)
We still advertise "git resolve" as a standalone command, but never
"git octopus", so nobody should be using it and it is safe to
retire it. The functionality is still available as a strategy
backend.

Signed-off-by: Junio C Hamano <junkio@cox.net>
.gitignore
Documentation/git-octopus.txt [deleted file]
Documentation/git.txt
Makefile
git-octopus.sh [deleted file]
index 8a6bd02d4ff1628af4c47d8c0c35d835607832d1..6bd508e4be252d5afeb24db9b4ca7f0541f895ce 100644 (file)
@@ -60,7 +60,6 @@ git-merge-stupid
 git-mktag
 git-name-rev
 git-mv
-git-octopus
 git-pack-redundant
 git-pack-objects
 git-parse-remote
diff --git a/Documentation/git-octopus.txt b/Documentation/git-octopus.txt
deleted file mode 100644 (file)
index 6e32ea3..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-git-octopus(1)
-==============
-
-NAME
-----
-git-octopus - Merge more than two commits.
-
-
-SYNOPSIS
---------
-'git-octopus'
-
-DESCRIPTION
------------
-After running 'git fetch', $GIT_DIR/FETCH_HEAD contains the
-following information, one line per remote ref:
-
-------------------------------------------------
-<object name>  <ref name> from <repository>
-------------------------------------------------
-
-Using this information, create and commit an Octopus merge on
-top of the current HEAD.
-
-
-Author
-------
-Written by Junio C Hamano <junkio@cox.net>
-
-
-Documentation
---------------
-Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
-
-GIT
----
-Part of the gitlink:git[7] suite
-
index 482eba7eba29b2bad53380a1eba4c4aa16083fab..5f068c2a1ab225755a443f6a34e3c4797481cd16 100644 (file)
@@ -297,9 +297,6 @@ gitlink:git-merge[1]::
 gitlink:git-mv[1]::
        Move or rename a file, a directory, or a symlink.
 
-gitlink:git-octopus[1]::
-       Merge more than two commits.
-
 gitlink:git-pull[1]::
        Fetch from and merge with a remote repository.
 
index c66220c1a674e8d8c0593c33ca320cd520684ebf..50392ff6512d9c36f2431b7582208fe454b5777b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -89,7 +89,7 @@ SCRIPT_SH = \
        git-cherry.sh git-clone.sh git-commit.sh \
        git-count-objects.sh git-diff.sh git-fetch.sh \
        git-format-patch.sh git-log.sh git-ls-remote.sh \
-       git-merge-one-file.sh git-octopus.sh git-parse-remote.sh \
+       git-merge-one-file.sh git-parse-remote.sh \
        git-prune.sh git-pull.sh git-push.sh git-rebase.sh \
        git-repack.sh git-request-pull.sh git-reset.sh \
        git-resolve.sh git-revert.sh git-sh-setup.sh git-status.sh \
diff --git a/git-octopus.sh b/git-octopus.sh
deleted file mode 100755 (executable)
index 2edbf52..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2005 Junio C Hamano
-#
-# Resolve two or more trees recorded in $GIT_DIR/FETCH_HEAD.
-#
-. git-sh-setup
-
-usage () {
-    die "usage: git octopus"
-}
-
-# Sanity check the heads early.
-while read SHA1 REPO
-do
-       test $(git-cat-file -t $SHA1) = "commit" ||
-               die "$REPO given to octopus is not a commit"
-done <"$GIT_DIR/FETCH_HEAD"
-
-head=$(git-rev-parse --verify HEAD) || exit
-
-git-update-index --refresh ||
-       die "Your working tree is dirty."
-test "$(git-diff-index --cached "$head")" = "" ||
-       die "Your working tree does not match HEAD."
-
-# MRC is the current "merge reference commit"
-# MRT is the current "merge result tree"
-
-MRC=$head PARENT="-p $head"
-MRT=$(git-write-tree)
-CNT=1 ;# counting our head
-NON_FF_MERGE=0
-while read SHA1 REPO
-do
-       common=$(git-merge-base $MRC $SHA1) ||
-               die "Unable to find common commit with $SHA1 from $REPO"
-
-       if test "$common" = $SHA1
-       then
-               echo "Already up-to-date: $REPO"
-               continue
-       fi
-
-       CNT=`expr $CNT + 1`
-       PARENT="$PARENT -p $SHA1"
-
-       if test "$common,$NON_FF_MERGE" = "$MRC,0"
-       then
-               # The first head being merged was a fast-forward.
-               # Advance MRC to the head being merged, and use that
-               # tree as the intermediate result of the merge.
-               # We still need to count this as part of the parent set.
-
-               echo "Fast forwarding to: $REPO"
-               git-read-tree -u -m $head $SHA1 || exit
-               MRC=$SHA1 MRT=$(git-write-tree)
-               continue
-       fi
-
-       NON_FF_MERGE=1
-
-       echo "Trying simple merge with $REPO"
-       git-read-tree -u -m $common $MRT $SHA1 || exit
-       next=$(git-write-tree 2>/dev/null)
-       if test $? -ne 0
-       then
-               echo "Simple merge did not work, trying automatic merge."
-               git-merge-index -o git-merge-one-file -a || {
-               git-read-tree --reset "$head"
-               git-checkout-index -f -q -u -a
-               die "Automatic merge failed; should not be doing Octopus"
-               }
-               next=$(git-write-tree 2>/dev/null)
-       fi
-       MRC=$common
-       MRT=$next
-done <"$GIT_DIR/FETCH_HEAD"
-
-# Just to be careful in case the user feeds nonsense to us.
-case "$CNT" in
-1)
-       echo "No changes."
-       exit 0 ;;
-esac
-result_commit=$(git-fmt-merge-msg <"$GIT_DIR/FETCH_HEAD" |
-               git-commit-tree $MRT $PARENT)
-echo "Committed merge $result_commit"
-git-update-ref HEAD $result_commit $head
-git-diff-tree -p $head $result_commit | git-apply --stat