git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[Not A Patch] Octopus demo

From
Junio C Hamano <junkio@cox.net>
Date
Aug 19, 2005, 01:05 UTC
Message-ID
<7vy86yd9do.fsf@assigned-by-dhcp.cox.net>

Create an empty directory and running this script in there would let you see the original Octopus in action.

--- #!/bin/sh

test -d .saved-git || {
    U=http://www.kernel.org/pub/scm/git/git.git
    GIT_DIR=.saved-git
    export GIT_DIR
    git-init-db
    : >$GIT_DIR/FETCH_HEAD
    h=0
    while read SHA1
    do
	    git-http-pull -a -v $SHA1 $U
	    h=$(expr $h + 1)
	    echo $SHA1 >$GIT_DIR/refs/heads/H$h
	    echo "$SHA1	heads/H$h" >>$GIT_DIR/FETCH_HEAD
    done <<\EOF
fc54a9c30ccad3fde5890d2c0ca2e2acc0848fbc
9e30dd7c0ecc9f10372f31539d0122db97418353
c4b83e618f1df7d8ecc9392fa40e5bebccbe6b5a
660265909fc178581ef327076716dfd3550e6e7b
b28858bf65d4fd6d8bb070865518ec43817fe7f3
EOF
    echo ed4eeaf203d0f293bd5ffc2a0ad8711f052db1f3 >$GIT_DIR/HEAD
}

rm -fr testing git clone -l ./.saved-git testing cp .saved-git/FETCH_HEAD testing/.git/.

cd testing || exit

git show-branches git checkout

git octopus || exit

git show-branches git-rev-list --max-count=1 --pretty HEAD

Message 1 of 1 in “Octopus demo”
  1. Octopus demoJunio C Hamano, Aug 19, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.