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

Re: [PATCH] New git-seek command with documentation and test.

From
Llinux@horizon.com <linux@horizon.com>
Date
Feb 24, 2006, 01:23 UTC
Message-ID
<20060224012312.25603.qmail@science.horizon.com>
In-Reply-To
<Pine.LNX.4.63.0602240152490.32472@wbgn013.biozentrum.uni-wuerzburg.de>
> Not heretical. How do you intend to switch branches now?

Point .git/HEAD at the branch like usual. .git/HEAD would not be a symref *only* when on the unnamed temporary branch (which doesn't accept commits).

> And how do you intend to record the starting point of git-seek to
> which you want to return to?

Te same way it's done now for git-seek or git-bisect: by copying the old HEAD to a temporary location like .git/head-name.

> All leads back to .git/HEAD pointing to a branch (or whatever 
> you want to call it).

In the usual case, yes it should. Any time you want to be able to develop on a branch, you need .git/HEAD pointing to a branch. You only make it point to a commit directly is when exploring the history with no intention of developing from it.

(Note that you can easily change your mind with a simple "git checkout -b <branch>".)

> And BTW, .git/HEAD is no symlink these days, but a symref.
Yes, I'm sorry; I was just being lazy with my terminology.
Previous: Johannes SchindelinNext: H. Peter Anvin
Message 3 of 5 in “Re: [PATCH] New git-seek command with documentation and test.”
  1. linux@horizon.comFeb 24, 2006
  2. Johannes SchindelinFeb 24, 2006
  3. linux@horizon.comFeb 24, 2006
  4. H. Peter AnvinFeb 24, 2006
  5. Andreas EricssonFeb 24, 2006

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.