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

Re: Strange behavior with git rebase (-i)

From
SMStefan (metze) Metzmacher <metze@samba.org>
Date
Feb 3, 2008, 01:21 UTC
Message-ID
<47A51708.4020406@samba.org>
In-Reply-To
<alpine.LSU.1.00.0802021708030.7372@racer.site>
Johannes Schindelin schrieb:
Show 16 quoted lines
> Hi,
> 
> On Sat, 2 Feb 2008, Steven Walter wrote:
> 
>> On Sat, Feb 02, 2008 at 03:42:06PM +0000, Johannes Schindelin wrote:
>>> I don't believe it.  "git branch" would have shown "* (no branch)" as 
>>> current branch, unless the rebase is finalized.
>>>
>>> git rebase -i works on a _detached_ HEAD, for two reasons:
>>> On Sat, 2 Feb 2008, Stefan (metze) Metzmacher wrote:
>>>> I was using git 1.5.3.2
>> Did rebase -i in git 1.5.3.2 use a detached head?  I thought that was
>> new in 1.5.4.
> 
> rebase -i uses a detached HEAD since it was merged.  In 1.5.4, rebase 
> (note the absence of -i) uses a detached HEAD, too.

Hmm, I can't reproduce this...maybe I was just to stupid and didn't look at the git branch output carefully...

metze
Previous: Johannes Schindelin
Message 5 of 5 in “Strange behavior with git rebase (-i)”
  1. Stefan (metze) MetzmacherFeb 2, 2008
  2. Johannes SchindelinFeb 2, 2008
  3. Steven WalterFeb 2, 2008
  4. Johannes SchindelinFeb 2, 2008
  5. Stefan (metze) MetzmacherFeb 3, 2008

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.